1.解决爬虫线程停止失败的bug,2新增新笔趣阁源,兼容更多源站

This commit is contained in:
xiongxiaoyang
2020-05-24 00:54:27 +08:00
parent 80b933db8d
commit a0fb8e481a
5 changed files with 19 additions and 4 deletions

View File

@ -179,9 +179,13 @@
for (var i = 0; i < bookList.length; i++) {
var book = bookList[i];
var end = book.bookDesc.indexOf("<");
/*var end = book.bookDesc.indexOf("<");
if(end != -1) {
book.bookDesc = book.bookDesc.substring(0,end);
}*/
if(book.bookDesc){
book.bookDesc = book.bookDesc.replace(/<[^>]+>/g,"").replace(/\s+/g,"");
}
bookListHtml += ("<div class=\"layui-row\" style=\"margin-bottom:10px;padding:10px;background: #f2f2f2\">\n" +