随笔分类 -  jQuery

摘要:引入文件 jquery.js jquery.nicescroll.js 地址: https://nicescroll.areaaperta.com/wp-content/plugins/jnicescroll/js/jquery.nicescroll.min.js 使用: $("div").nice 阅读全文
posted @ 2021-07-16 11:27 Edith6 阅读(491) 评论(0) 推荐(0)
摘要:<div style="width: 100%;height:2000px;"> <button style="margin-top: 200px;" onclick="show()">sssssss</button> </div> <div id="model" style="position: 阅读全文
posted @ 2021-07-15 14:20 Edith6 阅读(276) 评论(0) 推荐(0)
摘要:下载formSelects v4插件(引入formSelects v4.css和formSelects v4.js) 下载地址:https://fly.layui.com/extend/formSelects/ download 其他属性用法见网址:https://hnzzmsf.github.io 阅读全文
posted @ 2019-11-07 14:39 Edith6 阅读(9391) 评论(0) 推荐(0)
摘要:$.ajax()方法详解 jquery中的ajax方法参数总是记不住,这里记录一下。 1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和del 阅读全文
posted @ 2019-10-28 16:10 Edith6 阅读(1084) 评论(0) 推荐(0)
摘要:ajaxSetup()其使用方法与ajax()并无区别,只是在其之后的ajax()不用再重复添加相同参数,节省了代码量。 附:API中关于jQuery.ajaxSetup([options])的描述和jQuery 代码: 描述: 设置 AJAX 请求默认地址为 “/xmlhttp/”,禁止触发全局 阅读全文
posted @ 2019-10-28 15:52 Edith6 阅读(1736) 评论(0) 推荐(0)