JS_0021:JS自动执行的方法

1,

    // 自执行区域
    (function () {
        
    })();

 

2,

function(a, r, u) {
    console.log("自执行方法");
    a.alert("haodi");
}(window, document, Math),

 

posted @ 2020-08-05 15:51  琥珀君  阅读(137)  评论(0编辑  收藏  举报