ES6的Promise实例
摘要:
function p1(x){ return new Promise(function(resolved,rejected){ if(x==1){ console.log(1) resolved(x) }else{ rejected(2) } ... 阅读全文
posted @ 2018-07-03 14:48 emmeet 阅读(90) 评论(0) 推荐(0) 编辑
posted @ 2018-07-03 14:48 emmeet 阅读(90) 评论(0) 推荐(0) 编辑