$.ajax({
url:"/masbook"
, type:"POST"
, data:"bibliash22=" + JSON.stringify(studentsbooks)
, success: function(res) {
alert(res);
}
});
.И надо написать код для обработки POST запроса.var http = require('http'),
formidable = require('formidable'),
util = require('util');
http.createServer(function (req, res) {
if (req.method == 'POST') {
var form = new formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log(fields.bibliash22);
});
}
res.end();
}).listen(8888);