JSON.parse

 JSON.parse('{"userid":100,"username":"rose"}')

 

JSON.parse('[{"userid":100,"username":"rose"},{"userid":200,"username":"yinyin"}]')

 

 

 

 

var array = new Array();

array.push({"userid":100,"name":"rose"});
array.push({"userid":200,"name":"yinyin"});

JSON.stringify(array);

 

posted @ 2017-11-26 01:05  茗::流  阅读(137)  评论(0)    收藏  举报
如有雷同,纯属参考。如有侵犯你的版权,请联系我。