因為涉及到資料加載的問題,需要讓 imgSign這個函式先執行完才能往下進行,imgSign最后回傳了一個true值,
我這里讓將值賦給res列印,但是res列印出來是undefined,為什么會這樣,還有其他地方的這倆關鍵詞也不起作用,.then()也一樣不起作用。
async toSign(signType){
let res=await this.imgSign()
console.log('res',res)
},
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/129650.html
標籤:其他開發語言
上一篇:Python
下一篇:python imutils
