苹果CMS指南

接口传参规则

参数
mid:模块1视频2文章3专题
limit:每页条数,支持10,20,30
page:页码,最多不超过20页,防止非法采集
接口地址是index.php/ajax/data.html?mid=1&page=1&limit=10

AJAX请求示例代码

$.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)
}
});
标签:接口