var val = "aaa"
var o = {}
str = "o."+key+"='"+val+"'"
eval(str)
alert(o.name)
var tmpCourse = {}_.each(course, function(value, key) {
tmpCourse[key] = value
tmpCourse[key+"test"] = value + 1
})
course = tmpCourse
欢迎分享,转载请注明来源:内存溢出
var val = "aaa"
var o = {}
str = "o."+key+"='"+val+"'"
eval(str)
alert(o.name)
var tmpCourse = {}_.each(course, function(value, key) {
tmpCourse[key] = value
tmpCourse[key+"test"] = value + 1
})
course = tmpCourse
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)