Rah*_*hul 0 ajax jquery node.js
$.ajax({
type:"post",
url: server_url,
dataType: "jsonp",
jsonpCallback: callback,
data:req_json,
cache: false,
timeout: 60000,
success: succeeded,
error: got_error
});
Run Code Online (Sandbox Code Playgroud)
我正在尝试上面的代码来发送POST requset但是在服务器端总是只接收GET请求,任何人都可以告诉我为什么会发生这种情况?在此先感谢.. server_url就像http://ip:8007