Commit 218874c5 by doszhang

dos

parent ba3ce4e8
...@@ -122,9 +122,12 @@ preloadimages(preloadImageList, function () { ...@@ -122,9 +122,12 @@ preloadimages(preloadImageList, function () {
}, function (progress) {}); }, function (progress) {});
$(document).ready(function () { $(document).ready(function () {
readingJson = {}; reading = JSON.stringify(getCookie('reading'));
readingJson = JSON.stringify(getCookie('reading')); if (reading != 'null') {
readingJson = reading;
console.log(readingJson); console.log(readingJson);
}
$("input").on("blur", function () { $("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
...@@ -229,7 +232,7 @@ function jumpTolink(event) { ...@@ -229,7 +232,7 @@ function jumpTolink(event) {
readingJson['link' + index] = 1; readingJson['link' + index] = 1;
console.log(readingJson); console.log(readingJson);
setCookie('reading', JSON.parse(readingJson)); // setCookie('reading', JSON.parse(readingJson));
} }
// window.location.href = link; // window.location.href = link;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment