模拟eval

function eval(fn) { var Fn = Function; return new Fn('return' + fn) (); }

原文地址:https://www.cnblogs.com/shigongzi/p/7350719.html