老师好,
我这也出现了这个问题,我把版本降低了之后,也还是没有反应…
initEpub () {
const url = ‘’ + this.fileName + '.epub’
console.log(url)
this.book = new Epub(url)
console.log(this.book)
this.rendition = this.book.renderTo(‘read’, {
width: window.innerWidth,
height: window.innerHeight,
method: ‘default’
})
console.log(this.rendition)
this.rendition.display()
this.rendition.on(‘touchstart’, event => {
console.log(event)
})
this.rendition.on(‘touchend’, event => {
console.log(event)
})
}
手机预览模式下也能渲染出来,book和rendition也都能打印出来,除了降低版本,还有其他的需要注意的地方吗?