{"id":4750,"date":"2022-03-27T20:39:10","date_gmt":"2022-03-27T12:39:10","guid":{"rendered":"https:\/\/egonlin.com\/?p=4750"},"modified":"2022-04-26T14:19:59","modified_gmt":"2022-04-26T06:19:59","slug":"%e7%ac%ac%e5%85%ad%e8%8a%82%ef%bc%9ajq%e6%8f%92%e4%bb%b6%e6%9c%ba%e5%88%b6","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=4750","title":{"rendered":"\u7b2c\u516d\u8282\uff1ajq\u63d2\u4ef6\u673a\u5236"},"content":{"rendered":"<h1>jQuery \u63d2\u4ef6<\/h1>\n<h2>1 jQuery \u63d2\u4ef6\u7684\u7f51\u7ad9<\/h2>\n<ul>\n<li>\n<p><a href=\"http:\/\/plugins.jquery.com\/\">http:\/\/plugins.jquery.com\/<\/a>  \u5b98\u7f51<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.jq22.com\/\">http:\/\/www.jq22.com\/<\/a>  jQuery\u63d2\u4ef6\u5e93<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.htmleaf.com\/\">http:\/\/www.htmleaf.com\/<\/a> jQuery \u4e4b\u5bb6<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.jq-school.co\">http:\/\/www.jq-school.co<\/a> m  jQuery-school<\/p>\n<\/li>\n<\/ul>\n<h2>2 \u7ecf\u5178jQuery\u63d2\u4ef6<\/h2>\n<p>2.1 ### select2  \u4e0b\u62c9\u6846\u641c\u7d22\u63d2\u4ef6<\/p>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"https:\/\/select2.org\/\">https:\/\/select2.org\/<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/select2\/select2\">https:\/\/github.com\/select2\/select2<\/a> <\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">$(dom).select2()\n$(dom).select({\nwidth:,\ndata:,\najax:,\n....\n})<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.2 datetimepicker  \u65f6\u95f4\u65e5\u671f\u63d2\u4ef6<\/h3>\n<ul>\n<li>\n<p>github <a href=\"https:\/\/github.com\/xdan\/datetimepicker\">https:\/\/github.com\/xdan\/datetimepicker<\/a><\/p>\n<\/li>\n<li>\n<p>\u6587\u6863  <a href=\"https:\/\/xdsoft.net\/jqplugins\/datetimepicker\/\">https:\/\/xdsoft.net\/jqplugins\/datetimepicker\/<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">\/\/\u8bbe\u7f6e\u8bed\u8a00\n$.datetimepicker.setLocale('zh');\n\/\/\u8c03\u7528\u63d2\u4ef6\n$(dom).datetimepicker({\ndatepicker:,\ntimepicker:,\nformat:\"Y-m-d H:i\",\nvalue:\uff0c\n....\n})<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.3 fullpage \u5168\u5c4f\u6eda\u52a8\u63d2\u4ef6<\/h3>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"https:\/\/alvarotrigo.com\/fullPage\/zh\/\">https:\/\/alvarotrigo.com\/fullPage\/zh\/<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/alvarotrigo\/fullpage.js\/\">https:\/\/github.com\/alvarotrigo\/fullpage.js\/<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-html\"><!--HTML\u90e8\u5206-->\n<div id=\"fullpage>\n<div class=\"section\"><\/div>\n<div class=\"section\">\n    <div class=\"slide\"><\/div>\n    <div class=\"slide\"><\/div>\n    <div class=\"slide\"><\/div>\n<\/div>\n<div class=\"section\"><\/div>\n<div class=\"section\"><\/div>\n<\/div>\n\u81ea\u5b9a\u4e49\u7684\u5bfc\u822a \u5378\u8f7d\u5305\u88f9\u5143\u7d20\u7684\u5916\u9762\n\n<!--JS\u90e8\u5206-->\n<script>\n$(\"#fullpage\").fullpage({\n    navigation: true,\n    sectionsColor: []\n    .....\n})\n<\/script>\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.4 lazyload \u56fe\u7247\u61d2\u52a0\u8f7d<\/h3>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"https:\/\/appelsiini.net\/projects\/lazyload\/\">https:\/\/appelsiini.net\/projects\/lazyload\/<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/tuupola\/jquery_lazyload\/tree\/2.x\">https:\/\/github.com\/tuupola\/jquery_lazyload\/tree\/2.x<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">$(\"#lazyWrapper img\").lazyload()<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.5 layer  \u5f39\u7a97\u63d2\u4ef6<\/h3>\n<ul>\n<li>\n<p>\u5b98\u7f51  <a href=\"http:\/\/layer.layui.com\/?alone\">http:\/\/layer.layui.com\/?alone<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/sentsin\/layer\/\">https:\/\/github.com\/sentsin\/layer\/<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">layer.alert()\nlayer.confirm()\nlayer.msg()\nlayer.load()\nlayer.tips()\nlayer.colse()\nlayer.open({\ntype: ,\ntitle: ,\ncontent: \n....\n})\n...<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.6 nice validator \u8868\u5355\u9a8c\u8bc1<\/h3>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"https:\/\/validator.niceue.com\/\">https:\/\/validator.niceue.com\/<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/niceue\/nice-validator\">https:\/\/github.com\/niceue\/nice-validator<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">$(\"form\").validator({\n\n})<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2.7 jQuery-easing<\/h3>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"http:\/\/gsgd.co.uk\/sandbox\/jquery\/easing\/\">http:\/\/gsgd.co.uk\/sandbox\/jquery\/easing\/<\/a><\/p>\n<\/li>\n<li>\n<p>github <a href=\"https:\/\/github.com\/gdsmith\/jquery.easing\">https:\/\/github.com\/gdsmith\/jquery.easing<\/a><\/p>\n<\/li>\n<li>\n<p>\u7528\u6cd5<\/p>\n<pre><code class=\"language-javascript\">$(dom).hide(speed, easing, fn)<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>3 \u81ea\u5b9a\u4e49jQuery \u63d2\u4ef6<\/h2>\n<p><strong>jQuery.fn.extend()  \u7ed9jQueryDom\u6269\u5c55\u65b9\u6cd5<\/strong><\/p>\n<pre><code class=\"language-js\">$.fn.extend({\n  \u65b9\u6cd5\u540d:function(){}\n})\n\/\/\u6216\u8005\n$.fn.\u65b9\u6cd5\u540d = function(){\n\n}<\/code><\/pre>\n<p><strong>jQuery.extend()     \u7ed9jQuery \u5bf9\u8c61\u672c\u8eab\u6269\u5c55\u65b9\u6cd5<\/strong><\/p>\n<pre><code class=\"language-js\">$.extend({\n   \u65b9\u6cd5\u540d: function(){\n   }\n})\n<\/code><\/pre>\n<p>\u200b<\/p>\n<h2>4 jQuery UI<\/h2>\n<ul>\n<li>\u5b98\u7f51 <a href=\"https:\/\/jqueryui.com\/\">https:\/\/jqueryui.com\/<\/a><\/li>\n<\/ul>\n<h2>5 jQueryMobile<\/h2>\n<ul>\n<li>\n<p>\u5b98\u7f51 <a href=\"https:\/\/jquerymobile.com\/\">https:\/\/jquerymobile.com\/<\/a><\/p>\n<\/li>\n<li>\n<p>\u6559\u7a0b <a href=\"http:\/\/www.runoob.com\/jquerymobile\/jquerymobile-tutorial.html\">http:\/\/www.runoob.com\/jquerymobile\/jquerymobile-tutorial.html<\/a><\/p>\n<\/li>\n<\/ul>\n<h2>6 Sizzle<\/h2>\n<ul>\n<li>\u5b98\u7f51 <a href=\"https:\/\/sizzlejs.com\/\">https:\/\/sizzlejs.com\/<\/a><\/li>\n<\/ul>\n<h2>7 Zepto<\/h2>\n<ul>\n<li>\u5b98\u7f51 <a href=\"http:\/\/zeptojs.com\/\">http:\/\/zeptojs.com\/<\/a><\/li>\n<li>\u4e0ejquery\u533a\u522b\uff1a <a href=\"https:\/\/www.zhihu.com\/question\/25379207\">https:\/\/www.zhihu.com\/question\/25379207<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>jQuery \u63d2\u4ef6 1 jQuery \u63d2\u4ef6\u7684\u7f51\u7ad9 http:\/\/plugins.jquery.com\/ \u5b98\u7f51  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[361,365],"tags":[],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/4750"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4750"}],"version-history":[{"count":0,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/4750\/revisions"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}