函数自执行的作用域问题

(function abc(){
alert(0);
})();

window.onresize = abc;

此时的abc未定义。

posted @ 2016-09-18 10:21  绯红的花io  阅读(367)  评论(0编辑  收藏  举报