会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
overAgain
博客园
首页
新随笔
联系
管理
订阅
2016年11月12日
promise
摘要: function asyncFun(a,b,cb) { setTimeout(function(){ cb(a+b) },200) } asyncFun(1,2,function(result){ console.log(result) }) console.log(2) // 先返回2再返回3 // promise 产生的原因 funct...
阅读全文
posted @ 2016-11-12 15:21 overAgain
阅读(186)
评论(0)
推荐(0)
编辑
es5 和 es6 class
摘要: ES6 不会提升
阅读全文
posted @ 2016-11-12 11:42 overAgain
阅读(951)
评论(0)
推荐(0)
编辑
公告