强健钻石

文章
5
资源
0
加入时间
3年1月14天

JS Ajax responseText 解析JSON

解决ajax处理服务器端返回结果responseText中是JSON的数据。第一,json格式的文件内容如下:{      "city":"ShangHai",      "telephone":"123456789"  }  第二,服务器端返回的json数据就是上述的内容在responseText中,现在要取出来,方法有两种: 方法1:var json