1.需要引入
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
2.加js
<script type="text/javascript">
function multi(pagenum,tagid)
{
var taget_obj = document.getElementById(tagid);
var taget_obj_page = document.getElementById("page_"+tagid);
myajax = new DedeAjax(taget_obj,false,false,‘‘,‘‘,‘‘);
myajax.SendGet2("/g6/ideacool/plus/arcmulti.php?mtype=0&pnum="+pagenum+‘&tagid=‘+tagid);
myajax = new DedeAjax(taget_obj_page,false,false,‘‘,‘‘,‘‘);
myajax.SendGet2("/g6/ideacool/plus/arcmulti.php?mtype=1&pnum="+pagenum+‘&tagid=‘+tagid);
DedeXHTTP = null;
}
</script>
里面请求路径根据需要进行更改
3.设置需要分页的列表
{dede:arclist tagid="dedecms" pagesize="2"}
<li>[field:arcurl/]</li>
<li>[field:writer/]</li>
<li>[field:pubdate function="GetDateTimeMK(@me)"/]</li>
<li>[field:type name/]</li>
<li>[field:idea_cost/]</li>
<li>[field:description/]</li>
<li>换页</li>
{/dede:arclist}
核心是那个tagid属性,用来跟
{dede:arcpagelist tagid=‘dedecms‘/}进行匹配的