Parcourir la source

历史记录时间排序问题解决

kangna il y a 7 ans
Parent
commit
5b6a8ee464
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      resources/app/history.html

+ 1 - 1
resources/app/history.html

@@ -150,7 +150,7 @@
             if(date != "arr"){
                 var a_head=$$("p",{"className":"HistoryCardHead","innerText":date},a);
                 var a_container=$$("ul",{"className":"HistoryCardContainer"},a);
-                var data = JSON.parse(localStorage[date]);
+                var data = JSON.parse(localStorage[date]).reverse();
                 for(var i=0;i<data.length;i++){
                     var a_list=$$("li",{},a_container);
                     $$("input",{"type":"checkbox","className":"Historyinput",'value': i,'onclick':function () {