/** * 查询24小时内更新文章 */ function get24hReleaseArticle() { $("#article24h").empty(); get('/api/article/get24hReleaseArticle', true, {}, function(res) { var data = res.data; if (!data) { return; } var _html = ''; for (var i = 0; i < data.length; i++) { var temp = data[i]; _html += '
  • ' + '' + '
    ' + temp.columnName + '
    ' + '' + temp.title + '
  • '; } $("#article24h").html(_html); }, function(err) {}); }