书名: | ${book.bookInfoBean.name} |
作者: | ${book.bookInfoBean.author} |
阅读: | ${book.durChapterName} ${formatTime(book.finalDate)} |
更新: | ${book.lastChapterName} ${formatTime(book.finalRefreshData)} |
来源: | ${book.bookInfoBean.origin} |
来源:${book.bookInfoBean.origin}
+书名:${book.bookInfoBean.name}
+作者:${book.bookInfoBean.author}
+阅读章节:${book.durChapterName}
+阅读时间:${formatTime(book.finalDate)}
+最新章节:${book.lastChapterName}
+检查时间:${formatTime(book.finalRefreshData)}
+ 简介:${book.bookInfoBean.introduce.trim().replace(/\n/g, "
")}
" + name + " 加载中...
"; + fetch(apiAddress("getBookContent", url), { 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 = `