From 59b42a96c0e96c01f959c91b3b40060d45287bf7 Mon Sep 17 00:00:00 2001 From: wolegca <2738076308@qq.com> Date: Fri, 20 Sep 2019 12:44:30 +0800 Subject: [PATCH] add method --- js/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/index.js b/js/index.js index 595841b..ee95432 100644 --- a/js/index.js +++ b/js/index.js @@ -17,6 +17,10 @@ $.ajax({ dataType: "json", success: function (response) { var lastIndex = response.length - 1; + var i; + for(i in response){ + $('.sidebar').append($('
').append(i)); + } if (response[lastIndex]['hasCode'] == true) loadScript('content/js/' + response[lastIndex]['date'] + '.js');