怎么把数组转化成json
https://msdn.microsoft.com/zh-cn/library/cc836459(v=vs.94).aspx
====核心实现如下====
var continents = new Array();
continents[0] = 'Europe';
continents[1] = 'Asia';
continents[2] = 'Australia';
continents[3] = 'Antarctica';
continents[4] = 'North America';
continents[5] = 'South America';
continents[6] = 'Africa';
var jsonText = JSON.stringify(continents);
赞0
踩0