例如:

var giftlist[1490011777] = [];

giftlist[1490011777]['id'] = 1490011777;

giftlist[1490011777]['name'] = "礼包测试";

giftlist[1490011777]['desc'] = "详情";

 

转换json串

var jsonStr = JSON.stringify(giftlist[1490011777]);

posted on 2017-04-25 11:38  龙种人  阅读(22309)  评论(0编辑  收藏  举报