add method

This commit is contained in:
wolegca 2019-09-20 12:44:30 +08:00
parent 72ec664c0f
commit 59b42a96c0

View File

@ -17,6 +17,10 @@ $.ajax({
dataType: "json", dataType: "json",
success: function (response) { success: function (response) {
var lastIndex = response.length - 1; var lastIndex = response.length - 1;
var i;
for(i in response){
$('.sidebar').append($('<div>').append(i));
}
if (response[lastIndex]['hasCode'] == true) if (response[lastIndex]['hasCode'] == true)
loadScript('content/js/' + response[lastIndex]['date'] + '.js'); loadScript('content/js/' + response[lastIndex]['date'] + '.js');