模拟eval

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

posted @ 2017-08-12 16:44  皮皮鲁和鲁西西  阅读(139)  评论(0编辑  收藏  举报