我正在尝试将字符串从我的站点发送到我的 Node.js 服务器,但是当收到它们时,由于某些原因,某些字符会丢失。
// Client:
microAjax("/foo?test="+encodeURI("this is ++ a test"), function callback(){});
// Server:
app.get('/foo',function(req,res){
console.log(req.param("test"));
});
在这里,服务器上的两个“+”字符都丢失了。