search

Home  >  Q&A  >  body text

js如何获取json值?

checkcheck2962 days ago973

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:36:18

    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.

    reply
    0
  • 迷茫

    迷茫2016-12-22 15:30:18

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

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


    reply
    0
  • Cancelreply