修复小说阅读的时候按键盘→会报错的bug

This commit is contained in:
xiongxiaoyang
2020-11-12 12:03:45 +08:00
parent 66093cb065
commit 2c3e346ea7
2 changed files with 12 additions and 9 deletions

View File

@ -238,17 +238,17 @@
if (preId > 0) {
location.href = '/book/' + bid + '/' + preId + '.html';
} else {
location.href = '/book/chapterlist-' + bid + '.html';
location.href = '/book/indexList-' + bid + '.html';
}
} else if (e.keyCode == 39) {
if (nextId > 0) {
location.href = '/book/' + bid + '/' + nextId + '.html';
} else {
location.href = '/book/chapterlist-' + bid + '.html';
location.href = '/book/indexList-' + bid + '.html';
}
}
});
BookDetail.SetReadHistory(bid, cid, crank);
//BookDetail.SetReadHistory(bid, cid, crank);
},
SetReadHistory: function (bid, cid, crank) {
var strHistory = jQuery.cookie("wapviewhistory");