这个问题和头衔的问题非常相似,我对此绝对怀疑,这是否可能?我读到的所有关于服务器端应用程序的文章都指向了数据库,如SQL或Web以外的其他东西.
所以我想知道是否有可能简单地在一个文本区域上提交一些东西,然后存储在node.js制作的服务器应用程序上
例如:
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
//here is where I got with some help of others questions on stackoverflow
app.use(bodyParser.json());
//Note that in version 4 of express, express.bodyParser() was
//deprecated in favor of a separate 'body-parser' module.
app.use(bodyParser.urlencoded({ extended: true }));
app.listen(3000, function() {
console.log('Server running at http://127.0.0.1:3000/');
})
<div class="Contact_info">
<h1 id="Resume">Nos aconselhe</h1><!-- Give us some advice form -->
<form id="formCritic" action="http://localhost:3000" method="get"> <!-- this is my localhost created using JS on node.js -->
<input type="text" id="Name" name="Nome" placeholder="Seu nome.." >
<textarea class="text_area_submit" id="Questio" name="Questio" placeholder="Nos informe qualquer duvida ou problema.." ></textarea>
<!-- here is the text area which I would like to store what users input on my localhost -->
<input id="submit_text_are" type="submit" value="Submit">
</form>
</div>
只是一些额外的信息,我有我的根目录,名为:我的项目
里面有5个文件夹+index.html
一个文件夹名是js,它依赖于我的js程序到我的html和由node.js生成的serverSide.js.
我之所以添加这个信息,是因为我已经在这里看到了很多关于一些问题的答案,这些问题可能涉及到您的文件夹在哪里创建了您的服务器Side,其中node.js很重要.