摘要:一.$.ajax的基本使用结构 var response = $.ajax({ type: "POST", url: "/index.php?m=content&c=index&a=getList", data: { "page" : currentPage, "pTime":new Date().
阅读全文
摘要:function ajax_more(){ $type = isset($_POST['type']) ? (int)Yin::_input('post.type') : 0; //传递的参数 $page = isset($_POST['page']) ? (int)Yin::_input('pos
阅读全文
摘要:/* * 数据异步请求 */ function S_request(page){ $.ajax({ url: '请求的url', type: 'post', dataType:'json', data : { page : page }, success:function(data){ if (da
阅读全文
摘要:$('#ewm_pic').qrcode({ render: 'canvas', text: window.location.href, height: 120, width: 120, typeNumber: -1, //计算模式 correctLevel: QRErrorCorrectLevel
阅读全文
摘要:仿支付宝滑块验证效果Jquery前端实现,在验证成功时,在进行其他的操作,例如发送手机验证码或者其他,本文以验证成功发送邮件为例。效果图如下 代码如下:
阅读全文
摘要:实现HTML页面保存成图片需要基于html2canvas
阅读全文
摘要:基于bootstrap实现图片上传,具体代码实现如下 js代码实现如下:
阅读全文
摘要:jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分
阅读全文