angular4中異步等待async await 的使用

async 申明這個fun是異步的,await 等待某個方法執行完後繼續執行接下來的代碼。javascript async somefun() { do something... await this.another(); //another執行完後開始執行 this.then(); }
相關文章
相關標籤/搜索