for (i = 0, len = this.zip.names.length; i < len; i++) {
console.log('this.mimeFile-===:',this.mimeFile,this.zip.names[i].toLowerCase())
if (this.zip.names[i].toLowerCase() == "mimetype") {
console.log('this.mimeFile-===:',this.mimeFile)
this.mimeFile = this.zip.names[i];
break;
}
}
老师,这段代码这里解压我打印日志得到的是这个:
this.mimeFile-===: false 2010_book_accountabilityinpublicpolicypa/mimetype
this.zip.names[i].toLowerCase()--这个值会把文件名称也包含在内,所以会报No mimetype file in archive,这个epub.js的逻辑是不是有问题呢?