作用域
var scrope = "globe";(function(){alert(scrope)})()(function(){var scrope = "local";alert(scrope)})()(function(){var scrope;alert(scrope)})()
alert(1);
alert(1);
?alert(1);
轉載于:https://www.cnblogs.com/fyouckworld/p/3591360.html
總結
- 上一篇: 重新想象 Windows 8 Store
- 下一篇: 10个帮助你快速调试和排错的小技巧