Commit 254d162b by doszhang

dos

parent e3a3ea4a
...@@ -124,7 +124,7 @@ preloadimages(preloadImageList, function () { ...@@ -124,7 +124,7 @@ preloadimages(preloadImageList, function () {
$(document).ready(function () { $(document).ready(function () {
reading = getCookie('reading'); reading = getCookie('reading');
if (reading != 'null') { if (reading != 'null') {
readingJson = JSON.stringify(reading); readingJson = JSON.parse(reading);
console.log(readingJson); console.log(readingJson);
} }
...@@ -232,7 +232,7 @@ function jumpTolink(event) { ...@@ -232,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.stringify(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