文章最后更新时间:2025-11-18 00:00:00,由管理员负责审核发布,若内容或图片失效,请留言反馈!
苹果cms内置ajax数据接口说明
参数
mid:模块1视频2文章3专题
limit:每页条数,支持10,20,30
page:页码,最多不超过20页,防止非法采集
接口地址是index.php/ajax/data.html?mid=1&page=1&limit=10接口调用参考代码,自行修改
$.ajax({
type: "POST",
dataType: "JSON",
url: "index.php/ajax/data.html",
data:{mid:1,page:1,limit:10},
success:function(data,status){
console.log(data)
},
error:function(XMLHttpRequest,textStatus,errorThrown){
console.log(json_decode.msg)
}
});
参数
mid:模块1视频2文章3专题
limit:每页条数,支持10,20,30
page:页码,最多不超过20页,防止非法采集
接口地址是index.php/ajax/data.html?mid=1&page=1&limit=10接口调用参考代码,自行修改
$.ajax({
type: "POST",
dataType: "JSON",
url: "index.php/ajax/data.html",
data:{mid:1,page:1,limit:10},
success:function(data,status){
console.log(data)
},
error:function(XMLHttpRequest,textStatus,errorThrown){
console.log(json_decode.msg)
}
});
文章版权声明:除非注明,否则均为苹果CMS模板站原创文章,转载或复制请以超链接形式并注明出处。




发表评论