自执行函数
摘要:1、方式一: // 方式一 (function fun4(){ console.log("fun4"); }()); // "fun4" 2、方式二: // 方式二 (function fun5(){ console.log("fun5"); })();// "fun4" 3、其它方式:除了上面()
阅读全文
posted @ 2020-04-27 19:53
posted @ 2020-04-27 19:53
posted @ 2019-12-05 16:12