js中怎么把json数据转换成数组

如题所述

    php直接json_decode($json,true) 这样就可以得到数组的

    js的话 var array = eval(json),然后将array循环,就可以得到一个数组

温馨提示:答案为网友推荐,仅供参考
相似回答