动态添加json对象: var json = {}; json['a'] = 'a'; 动态添加数组对象: var arr = []; arr['a'] = 'a'; 转载于:https://www.cnblogs.com/ccdc/p/3087721.html