书名: | ${book.name} |
作者: | ${book.author} |
阅读: | ${book.durChapterTitle} ${formatTime(book.durChapterTime)} |
更新: | ${book.latestChapterTitle} ${formatTime(book.latestChapterTime)} |
来源: | ${book.origin} |
来源:${book.origin}
+书名:${book.name}
+作者:${book.author}
+阅读章节:${book.durChapterName}
+阅读时间:${formatTime(book.durChapterTime)}
+最新章节:${book.latestChapterTitle}
+检查时间:${formatTime(book.lastCheckTime)}
+ 简介:${book.intro.trim().replace(/\n/g, "
")}
" + name + " 加载中...
"; + fetch(apiAddress("getBookContent", url, index), { mode: "cors" }) + .then(res => res.json()) + .then(data => { + if (!data.isSuccess) { + alert(data.errorMsg); + $("#content").innerHTML = "" + name + " 加载失败!
"; + return; + } + var content = data.data.trim().split("\n\n"); + if (content.length === 2) { + $("#content").innerHTML = `