• Tools
  • Articles
  • Q&A
  • Login
0 0

通过ajax如何获取远程下面数据中reqdata的内容,{"retHeader":{"totalput":887},"retcode":"city","retmsg":1,"reqdata":}


json Ajax

13 years, 1 month ago
不锈钢太阳

不锈钢太阳


share
不锈钢太阳 13 years, 1 month ago

Answers

0

$.post("url",{params},function(data){
var rd=data.retHeader[0].totalput;
},"json")

呵呵,随手写写,不知道行不

answered 13 years, 1 month ago
不锈钢太阳

不老峰moku


share
不老峰moku answered 13 years, 1 month ago

Your Answer

Ask Question
Related questions

Angular根据JSON数据动态生成在网页上的列表

如何做跨域的ajax请求?

如何通过获取json数据动态生成博客的文章列表。

Jquery Ajax如何传递JSON数据到controller,其中包括List数据

jquery 遍历 json 获得name值

SpringMVC中使用List数据绑定,ajax怎么传输包含数组的Json数据?