Kay 推荐用户
// if($('li[data-containerid=' + containerid + ']').children().length){
// return;
// }
flag = !flag;
// maxid = $('li[data-containerid=' + containerid + ']').children().last().attr("data-id") || null;
$.ajax({
url: "https://www.meipian.cn/static/action/load_columns_article.php?userid=144072437",
type: "post",
data: {
containerid: containerid,
stickmaskid: stickid
},
success: function (res) {
res = JSON.parse(res);
var str = "";
for(var i = 0; i '
str += ' '
str += '
'
str += ' '
str += '
' + item['abstract'] + '
'
str += '
' + formattime(item['create_time']) + '
'
str += '
'
str += '
'
str += ' ' + item['visit_count'] + ' '
str += ' ' + item['praise_count'] + ' '
str += ' ' + item['comment_count'] + ''
str += '
'
str += '
' + item['category_name'] + ''
str += '
'
str += '
'
str += ' '
}
$('li[data-containerid=' + containerid + ']').append(str);
flag = !flag;
cb && cb(res);
}
})
}
function loadarticle(containerid,stickid,cb) {
maxid = $('li[data-containerid=' + containerid + ']').children().last().attr("data-id") || null;
$.ajax({
url: "https://www.meipian.cn/static/action/load_columns_article.php?userid=144072437",
type: "post",
data: {
containerid: containerid,
maxid: maxid,
stickmaskid: stickid
},
success: function (res) {
console.log(res);
res = JSON.parse(res);
cb(res);
}
})
}