随笔分类 -  前端开发

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 叶少翔 阅读(1035) 评论(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 叶少翔 阅读(508) 评论(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 叶少翔 阅读(190) 评论(0) 推荐(0)

QRCode.js 生成二维码
摘要:$('#ewm_pic').qrcode({ render: 'canvas', text: window.location.href, height: 120, width: 120, typeNumber: -1, //计算模式 correctLevel: QRErrorCorrectLevel 阅读全文

posted @ 2017-11-29 13:59 叶少翔 阅读(224) 评论(0) 推荐(0)

仿支付宝滑块验证效果Jquery前端实现
摘要:仿支付宝滑块验证效果Jquery前端实现,在验证成功时,在进行其他的操作,例如发送手机验证码或者其他,本文以验证成功发送邮件为例。效果图如下 代码如下: 阅读全文

posted @ 2017-11-17 18:27 叶少翔 阅读(1336) 评论(0) 推荐(0)

在微信中实现HTML页面保存成图片
摘要:实现HTML页面保存成图片需要基于html2canvas 阅读全文

posted @ 2017-11-15 15:26 叶少翔 阅读(6647) 评论(0) 推荐(0)

图片上传前端实现
摘要:基于bootstrap实现图片上传,具体代码实现如下 js代码实现如下: 阅读全文

posted @ 2017-11-13 18:21 叶少翔 阅读(469) 评论(0) 推荐(0)

$.ajax()方法详解
摘要:jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分 阅读全文

posted @ 2017-11-10 11:38 叶少翔 阅读(118) 评论(0) 推荐(0)

导航