标签:
var x = ‘outer‘;
(function() {
var x = ‘inner‘;
eval(‘x‘); // "inner"
})();
var num=9;
var retNum = new Function("$", "$=5+$;return $")(num);
console.log(num);//14
console.log(retNum);//9
标签:
原文地址:http://www.cnblogs.com/blowfish/p/4689490.html