Promise 、Async/Await的使用

Prosmise對像是es6的新特性,也是異步編程的解決方案。javascript var promise = new Promise(function (resolve , reject) { var result = axios.get('../data.json'); if (result){ resolve(result)
相關文章
相關標籤/搜索