admin 发表于 2016-11-19 14:28:54

在模板中使用ajaxget加载其他页面的数据


ajaxget加载页面时,会自动带上inajax=1,在页面模板中根据此参数来返回ajax请求返回的数据格式。

注意:ajax返回的数据是header和footer之间的html代码,即div中的html代码。

ajaxget('home.php?mod=space&do=thread&uid=1&_r='+Math.random(),'author_threads_div','','','',function(){
    alert('callback');
      });

页: [1]
查看完整版本: 在模板中使用ajaxget加载其他页面的数据