js如何获取json值?
check
check 2016-12-22 15:29:59
0
2
970
check
check

reply all(2)
数据分析师

How does js get the json value? - PHP Chinese website Q&A - How does js get the json value? - PHP Chinese website Q&A

Take a look around and learn.

迷茫

通过循环就可以将json里的值全部获取了;

var json = {'name':'xxxxx', 'age':27};
for(var name in json){
    document.write(json[name]);
}


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