【发布时间】:2015-09-11 18:27:30
【问题描述】:
我的要求是:
var req = {"action": "UserAPI","method": "Authenticate","data": ["un","pw"],"type": "rpc", "tid": "1"}
$.post("http://localhost/myServer/RPC/ROUTER",req, function(result){
console.log(result.responseText);
});
回复是:
"{ "jsonrpc" : "2.0", "error" : { "code" : -32600, "message" : "JSON-RPC Request must be an object." }, "tid" : null }"
Request 已经是一个对象。这有什么问题?
【问题讨论】:
标签: jquery json ajax rpc json-rpc