异步 callback vs promise vs async/await
摘要:
1. callback var fn1=function(){console.log("func1")} var fn2=function(fn){ setTimeout(function(){ console.log("func2") fn() //不能写fn,这只是函数名,要写fn()才是触发 阅读全文
posted @ 2018-05-17 23:40 KellyChen_hug&hope 阅读(138) 评论(0) 推荐(0)
浙公网安备 33010602011771号