有这样一组数据
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/"}}
我的需求就是获取第二级对象的值;请问怎么获取
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()。