2019年12月15日

Jquery中ajax基本语法

摘要: 一.$.ajax的基本使用结构 var response = $.ajax({ type: "POST", url: "/index.php?m=content&c=index&a=getList", data: { "page" : currentPage, "pTime":new Date(). 阅读全文

posted @ 2019-12-15 12:17 叶少翔 阅读(984) 评论(0) 推荐(0) 编辑

jQuery+Ajax+PHP滚动加载

摘要: function ajax_more(){ $type = isset($_POST['type']) ? (int)Yin::_input('post.type') : 0; //传递的参数 $page = isset($_POST['page']) ? (int)Yin::_input('pos 阅读全文

posted @ 2019-12-15 12:16 叶少翔 阅读(482) 评论(0) 推荐(0) 编辑

ajax无刷新分页

摘要: /* * 数据异步请求 */ function S_request(page){ $.ajax({ url: '请求的url', type: 'post', dataType:'json', data : { page : page }, success:function(data){ if (da 阅读全文

posted @ 2019-12-15 12:15 叶少翔 阅读(176) 评论(0) 推荐(0) 编辑

导航