js为Object对象动态添加属性和值
为Object对象动态添加属性和值方式1:var obj = {}; //或者 var obj=new Object();var key = "name";var value = "张三丰"obj[key] = value;console.info(obj);方式2,使用eval() 动态解析字符串表达式var obj = {};var key = "name";var value = "张三丰"eval("