//拉取 function getNewsData(page,columnid){ var newsBlock = ''; $(".news_ajax_block").each(function(){ divid = $(this).attr('id'); var arr = divid.split('_'); typeid = parseInt(arr[1]); if(typeid==columnid){ $(this).show(); newsBlock = divid; }else{ $(this).hide(); } }); if(page==1){ return false; } $.ajax({ type: 'POST', url: basehost+"/plus/AjaxNewsList.php", data:{ 'columnid':columnid, 'pageNum':page, }, dataType:'json', beforeSend:function(){ $('#getmore_'+columnid).hide(); }, success:function(json){ if(json.msg == '110'){ $('#getmore_'+columnid).hide(); return false; } var li = ""; var list = json.list; if(list == undefined){ $('#getmore_'+columnid).hide(); return false; } $.each(list,function(index,array){ //遍历json数据列 li += '
'; li += ' '+array['pubdate1']+''; li += ' '+array['pubdate2']+''; li += '
'; li += ''+array['description']+'
'; li += '