赞
踩
将字符串转袭换成对象就可以了 var bb = 'function play(){alert("getplay");}'; var ss = bb; var ex = {getplay:eval("("+ss+")")}; ex.getplay();