[]如何创建一个json对象
页面请求,要求用json 传参,我查阅文档,只有解析json 没法创建json
var js :JSON = JSON;
//js.stringify("a","1");
js.uname ="sdfsdf";
js.pss ="sdfsdf";
console.log(js);
this.hr.send(url, js,"post","text");
服务器端获取不到值只是 [object JSON]
this.hr.send(url, js,"post","json");
会报错,发送失败
var js :JSON = JSON;
//js.stringify("a","1");
js.uname ="sdfsdf";
js.pss ="sdfsdf";
console.log(js);
this.hr.send(url, js,"post","text");
服务器端获取不到值只是 [object JSON]
this.hr.send(url, js,"post","json");
会报错,发送失败
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
lifulinghan
赞同来自: Dreamurr Zicheng
jiayiyi
赞同来自:
已经解决
cuixueying
赞同来自: