会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
﹏Sakura
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
博客园
首页
新随笔
联系
管理
订阅
2014年10月3日
函数只执行一次,若再执行,直接返回上次的结果
摘要: var once = (function(){ var res = {}, i = 0 ; return function(func){ if(typeof(func) != 'function'){ alert('参数类型不正确'); ...
阅读全文
posted @ 2014-10-03 01:37 ﹏Sakura
阅读(528)
评论(0)
推荐(0)
编辑
公告