//语法 eval(str); //demo var t = "func"; eval(''+func+'()'); 转载于:https://www.cnblogs.com/yanqin/p/6863526.html