这块算是这个这个课程结束后后留下的问题吧,要去啃epubjs的文档才行
这块功能需要自己动手实现,大致思路是在渲染后的继续获取定位信息,并进行百分比换算
this.rendition.display().then(() => {
// 获取定位信息
const currentLocation = this.rendition.currentLocation()
// 计算百分比
// ...
})this.rendition.currentLocation()获取是不是空?楼主解决了?