标签:highlight str asc console javascrip gif script json ace
var o1 = {a:1,b:3,c:3},o2 = {b:5,c:4,d:6}; a = eval("("+(JSON.stringify(o1)+JSON.stringify(o2)).replace(/}{/,",")+")"); console.log(a)
结果为:Object {a: 1, b: 5, c: 4, d: 6}
标签:highlight str asc console javascrip gif script json ace
原文地址:http://www.cnblogs.com/silvacheng/p/6154792.html