this.book.locations生成好了,但是result沒有結果,this.book.locations.generate()沒有返回值
this.book.ready.then(()=>{ ?????return?this.book.locations.generate(); }).then(result=>{??????? ??console.log(result)???????? }); 看this.book.locations的結果是生成好了,但是沒有走到result
this.book.ready.then(()=>{ ?????return?this.book.locations.generate(); }).then(result=>{??????? ??console.log(result)???????? }); 看this.book.locations的結果是生成好了,但是沒有走到result
2018-09-21
舉報
2018-09-21
你好,從源碼看沒什么問題,可以考慮book對象解析是否出了問題,或者其他錯誤導致this.book.ready沒有觸發成功
2018-12-06
我一開始也是遇到跟你一樣的問題,result打印不出來結果,后來打印我才注意到,因為我用的是在網上找的電子小說素材
他這里的狀態是pending,你需要等待一段時間(我猜根據你電子書的大小吧),過一會就能打印出來result
2018-09-21
可能是我找的epub源的問題,換成提供的素材就沒有問題了