例一 括号内可见
var times = 0; (function hello(){ console.log('hello~'); ++times<2&&hello(); })();
例二 括号外不可见
(function hello(){ console.log('~hello'); }); console.log(hello);
posted on 2018-09-29 14:12 沙滩海风 阅读(234) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 沙滩海风 Powered by .NET 9.0 on Kubernetes