如何理解异步处理?什么时候使用?
this.book.ready.then(() => {
return this.book.loacations.generate()
}).then(res => {
console.log(res)
this.locations = this.book.loacations() =>
res =>
这两个又有什么区别呢?
this.book.ready.then(() => {
return this.book.loacations.generate()
}).then(res => {
console.log(res)
this.locations = this.book.loacations() =>
res =>
这两个又有什么区别呢?
2019-02-17
举报