2.1 ### select2 下拉框搜索插件html
官網 https://select2.org/jquery
github https://github.com/select2/select2git
用法github
$(dom).select2() $(dom).select({ width:, data:, ajax:, .... })
github https://github.com/xdan/datetimepickerajax
用法dom
//設置語言 $.datetimepicker.setLocale('zh'); //調用插件 $(dom).datetimepicker({ datepicker:, timepicker:, format:"Y-m-d H:i", value:, .... })
官網 https://alvarotrigo.com/fullPage/zh/jquery插件
用法網站
<!--HTML部分--> <div id="fullpage> <div class="section"></div> <div class="section"> <div class="slide"></div> <div class="slide"></div> <div class="slide"></div> </div> <div class="section"></div> <div class="section"></div> </div> 自定義的導航 卸載包裹元素的外面 <!--JS部分--> <script> $("#fullpage").fullpage({ navigation: true, sectionsColor: [] ..... }) </script>
用法
$("#lazyWrapper img").lazyload()
用法
layer.alert() layer.confirm() layer.msg() layer.load() layer.tips() layer.colse() layer.open({ type: , title: , content: .... }) ...
用法
$("form").validator({ })
用法
$(dom).hide(speed, easing, fn)
jQuery.fn.extend() 給jQueryDom擴展方法
$.fn.extend({ 方法名:function(){} }) //或者 $.fn.方法名 = function(){ }
jQuery.extend() 給jQuery 對象自己擴展方法
$.extend({ 方法名: function(){ } })