会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LikWin
Don't disorderly in heart, Don't trapped in love, Don't miss the past, Don't afraid of the future.
博客园
首页
新随笔
联系
管理
2017年9月11日
js函数自执行的不同写法
摘要: 1、最前最后加括号 这是 jslint 推荐的写法,好处是,能提醒阅读代码的人,这段代码是一个整体。 2、function外面加括号 3、function前面加运算符,常见的是!与void 。
阅读全文
posted @ 2017-09-11 10:53 likwin
阅读(200)
评论(0)
推荐(0)
公告