87,993
社区成员
发帖
与我相关
我的任务
分享
var a = "function(value,row,index){return 'background-color:#ffee00;color:red;';}"
a = new Function('return ' + a);
var b={};
b.func= a();function(value,row,index){return 'background-color:#ffee00;color:red;';},这样完整的带参数的有办法可行吗
var str = 'alert("1")';
eval(str);