如何获取json数据?
phpcn_u238
phpcn_u238 2017-02-23 13:53:53
0
2
863

有这样一组数据

JSON数据如:{"options":{/"text/":/"王家湾/",/"value/":/"9/",/"text/":/"李家湾/",/"valu
e/":/"10/",/"text/":/"邵家湾/",/"value/":/"13/"},"option":{/"text/":/"王家湾/",/"value/":/"9/",/"text/":/"李家湾/",/"valu
e/":/"10/",/"text/":/"邵家湾/",/"value/":/"13/"},"opts":{/"text/":/"王家湾/",/"value/":/"9/",/"text/":/"李家湾/",/"valu
e/":/"10/",/"text/":/"邵家湾/",/"value/":/"13/"}}

我的需求就是获取第二级对象的值;请问怎么获取


phpcn_u238
phpcn_u238

reply all(2)
数据分析师

How to get json data? -PHP Chinese website Q&A-How to obtain json data? -PHP Chinese website Q&A

Let’s take a look and learn.

阿神

用JQuery吧,$.get()或者$.getJSON()。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template