{"id":3821,"date":"2015-05-01T23:45:14","date_gmt":"2015-05-01T15:45:14","guid":{"rendered":"https:\/\/sdeno.com\/?p=3821"},"modified":"2015-06-12T15:31:24","modified_gmt":"2015-06-12T07:31:24","slug":"%e6%9c%80%e5%ae%8c%e7%be%8e%e7%9a%84%e6%89%8b%e6%9c%ba%e6%89%8b%e5%8a%bf%e7%9b%91%e6%8e%a7%e6%8f%92%e4%bb%b6idangerous-swiper-js","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=3821","title":{"rendered":"\u6700\u5b8c\u7f8e\u7684\u624b\u673a\u624b\u52bf\u76d1\u63a7\u63d2\u4ef6idangerous.swiper.js"},"content":{"rendered":"<p>\u6b64\u63d2\u4ef6\u517c\u5bb9IE7\u4ee5\u4e0a\u6d4f\u89c8\u5668\uff0c\u4e4b\u524d\u4e5f\u6709\u4ecb\u7ecd\u8fc7\u7c7b\u4f3c\u7684\u63d2\u4ef6<a href=\"https:\/\/sdeno.com\/?p=3221\" target=\"_blank\">swipe.js<\/a>\uff0c\u4f46\u662f\u6ca1idangerous.swiper.js\u597d\u7528\uff0c<\/p>\n<p>Swiper\u662f\u4e00\u6b3e\u514d\u8d39\u548c\u8d85\u7ea7\u8f7b\u91cf\u7684\u9002\u7528\u4e8e\u591a\u79cd\u8bbe\u5907\u7684\u7684\u6ed1\u5757\u5e7b\u706f\u7247\u63d2\u4ef6\uff0c\u53ef\u9002\u7528\u4e8e\u79fb\u52a8\u7f51\u7ad9\uff0c\u79fb\u52a8APP\u548c\u79fb\u52a8\u672c\u5730APP\uff0c\u63d2\u4ef6\u539f\u4e3aIOS\u8bbe\u8ba1\uff0c\u4e5f\u53ef\u4ee5\u5728Android,Windows Phone 8\u548c\u73b0\u4ee3\u684c\u9762\u6d4f\u89c8\u5668\u4e0a\u4f7f\u7528\u3002<\/p>\n<p>\u5f15\u5165\u6838\u5fc3\u6587\u4ef6\uff0c\u53ef\u4ee5\u4e0d\u9700\u8981jquery\u7684\uff0c\u4f46jQ\u9177\u4e60\u60ef\u4e86jquery\uff0c\u6240\u4ee5\u8fd8\u662f\u5f15\u5165\u4e86\u3002<\/p>\n<p>1\uff0c<\/p>\n<pre>&lt;link rel=\"stylesheet\" href=\"path_to_css\/idangerous.swiper.css\"&gt;\r\n&lt;script defer src=\"http:\/\/libs.useso.com\/js\/jquery\/2.1.1\/jquery.min.js \"&gt;&lt;\/script&gt;\r\n&lt;script defer src=\"path_to_js\/idangerous.swiper-2.x.min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>2\uff0c\u5199\u5165html<\/p>\n<pre>&lt;div class=\"swiper-container\"&gt;\r\n &lt;div class=\"swiper-wrapper\"&gt; &lt;!--First Slide--&gt;\r\n &lt;div class=\"swiper-slide\"&gt; \r\n &lt;!-- \u8fd9\u91cc\u5199\u5165\u4f60\u9700\u8981\u7684\u4efb\u610fhtml\u5185\u5bb9 --&gt;\r\n &lt;\/div&gt; \r\n &lt;!--Second Slide--&gt;\r\n &lt;div class=\"swiper-slide\"&gt; \r\n &lt;!-- Any HTML content of the second slide goes here --&gt;\r\n &lt;\/div&gt; \r\n &lt;!--Third Slide--&gt;\r\n &lt;div class=\"swiper-slide\"&gt; \r\n &lt;!-- Any HTML content of the third slide goes here --&gt;\r\n &lt;\/div&gt; \r\n &lt;!--Etc..--&gt;\r\n &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u6253\u5f00 idangerous.swiper.css \uff0c\u5728\u6587\u4ef6\u6700\u540e\u4fee\u6539Swiper&#8217;s \u7684\u5bbd\u548c\u9ad8<\/p>\n<pre>\/* Specify Swiper's Size: *\/\r\n.swiper-container, .swiper-slide {\r\n width: 500px;\r\n height: 200px;\r\n}<\/pre>\n<p>\u5199\u5165JS\uff0c\u521d\u59cb\u5316\u63d2\u4ef6<\/p>\n<pre>&lt;script type=\"text\/javascript\"&gt;\r\n\/*======\r\nUse document ready or window load events\r\nFor example:\r\nWith jQuery: $(function() { ...code here... })\r\nOr window.onload = function() { ...code here ...}\r\nOr document.addEventListener('DOMContentLoaded', function(){ ...code here... }, false)\r\n=======*\/\r\n\/\/\u65e0jquery\r\nwindow.onload = function() {\r\n var mySwiper = new Swiper('.swiper-container',{\r\n \/\/Your options here:\r\n mode:'horizontal',\r\n loop: true\r\n \/\/etc..\r\n }); \r\n}\r\n \r\n\/*\r\n\u4f7f\u7528jquery\r\n*\/\r\n$(function(){\r\n var mySwiper = $('.swiper-container').swiper({\r\n \/\/Your options here:\r\n mode:'horizontal',\r\n loop: true\r\n \/\/etc..\r\n });\r\n})\r\n \r\n&lt;\/script&gt;<\/pre>\n<p style=\"color: #555555;\"><strong style=\"font-weight: bold;\">\u51fd\u6570<\/strong><\/p>\n<ul class=\" list-paddingleft-2\" style=\"color: #333333;\">\n<li><strong style=\"font-weight: bold;\">mySwiper.disableMousewheelControl()<\/strong>\u2013 \u5173\u95ed\u9f20\u6807\u6eda\u8f6e\u63a7\u5236<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.enableMousewheelControl()<\/strong>\u2013\u00a0<span style=\"color: #333333;\">\u5f00\u542f\u9f20\u6807\u6eda\u8f6e\u63a7\u5236<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.enableKeyboardControl()<\/strong>\u2013\u00a0<span style=\"color: #333333;\">\u5f00\u542f\u6309\u952e\u63a7\u5236<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.disableKeyboardControl()<\/strong>\u2013\u00a0<span style=\"color: #333333;\">\u5173\u95ed\u6309\u952e\u63a7\u5236<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.swipeNext()<\/strong>\u2013 \u53d8\u5f62\u5230\u4e0b\u4e00\u4e2aslide<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.swipePrev()<\/strong>\u00a0\u2013\u00a0<span style=\"color: #333333;\">\u53d8\u5f62\u5230\u4e0a\u4e00\u4e2aslide<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.swipeTo(index, speed, runCallbacks)<\/strong>\u00a0\u2013 \u8df3\u8f6c\u5230index\u503c\u7684slide\uff0cspeed\u4e3a\u8df3\u8f6c\u7684\u901f\u5ea6\uff0crunCallbacks\u4e3a\u8df3\u8f6c\u540e\u56de\u8c03\u7684\u6db5\u6570<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.browser.ie10<\/strong>\u00a0\u2013 \u5982\u679c\u662fIE10\u8fd4\u56detrue<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.browser.ie8<\/strong>\u00a0\u2013\u00a0<span style=\"color: #333333;\">\u5982\u679c\u662fIE8\u8fd4\u56detrue<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.support.touch<\/strong>\u00a0\u2013<span style=\"color: #333333;\">\u5982\u679c\u652f\u6301\u89e6\u5c4f\u4e8b\u4ef6\u8fd4\u56detrue<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.support.transforms<\/strong>\u00a0-\u5982\u679c\u652f\u6301CSS3\u53d8\u578b\u8fd4\u56detrue<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.support.transforms3d<\/strong>\u00a0\u2013\u00a0<span style=\"color: #333333;\">\u5982\u679c\u652f\u6301CSS3 3D\u53d8\u578b\u8fd4\u56detrue<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.support.transitions<\/strong>\u00a0\u2013\u00a0<span style=\"color: #333333;\">\u5982\u679c\u652f\u6301CSS3\u8fd4\u56detrue<\/span><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.activeSlide()<\/strong>\u00a0\u2013 \u8fd4\u56de\u5f53\u524dslide\u7684\u5185\u5bb9<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.clickedSlideIndex<\/strong>\u00a0\u2013 \u8fd4\u56de\u5355\u51fb\u6216\u89e6\u6478\u540e\u7684slide\u7684index\u503c. \u4fbf\u4e8e &#8220;onSlideTouch&#8221; \u548c&#8221;onSlideClick&#8221; \u8c03\u7528<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.clickedSlide<\/strong>\u00a0\u2013\u00a0<span style=\"color: #333333;\">\u8fd4\u56de\u5355\u51fb\u6216\u89e6\u6478\u540e\u7684slide\u7684\u5185\u5bb9<\/span>.\u00a0<span style=\"color: #333333;\">\u4fbf\u4e8e &#8220;onSlideTouch&#8221; \u548c&#8221;onSlideClick&#8221; \u8c03\u7528<\/span>.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.activeIndex<\/strong>\u00a0\u2013 \u8fd4\u56de\u5f53\u524dslide\u7684index\u503c.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.activeLoopIndex<\/strong>\u00a0\u2013 \u5728\u5faa\u73af\u6a21\u5f0f\u4e0b\u8fd4\u56de\u5f53\u524dslide\u7684index\u503c.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.activeLoaderIndex<\/strong>\u00a0\u2013 \u5728\u52a0\u8f7d\u6a21\u5f0f\u4e0b\u8fd4\u56de\u5f53\u524dslide\u7684index\u503c.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.previousIndex<\/strong>\u00a0\u2013 \u8fd4\u56de\u4e0a\u4e00\u4e2aslide\u7684index\u503c.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.startAutoplay()<\/strong>\u00a0\u2013 \u5f00\u59cb\u81ea\u52a8\u64ad\u653e.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.stopAutoplay()<\/strong>\u00a0\u2013 \u505c\u6b62\u81ea\u52a8\u64ad\u653e.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.destroy(\u00a0<em style=\"font-style: italic;\">removeResizeEvent<\/em>\u00a0)<\/strong>\u00a0\u2013 \u5c06\u5220\u9664\u6240\u6709\u9644\u52a0\u4e8b\u4ef6\u4fa6\u542c\u5668<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.resizeFix()<\/strong>\u00a0\u2013 \u5728slide\u6539\u53d8\u5927\u5c0f\u7a97\u53e3\u6ca1\u6709\u53d8\u65f6\u8c03\u7528\u6b64\u51fd\u6570.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.reInit()<\/strong>\u00a0\u2013 \u521d\u59cb\u5316 Swiper. \u7528\u4e8e\u52a8\u6001\u6dfb\u52a0\u6216\u5220\u9664 slides.<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.width<\/strong>\u00a0\u2013 \u8fd4\u56deswiper\u5bb9\u5668\u7684\u5bbd\u5ea6<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.height<\/strong>\u00a0\u2013 \u8fd4\u56deswiper\u5bb9\u5668\u7684\u9ad8\u5ea6<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.isTouched<\/strong>\u00a0\u2013 \u5f53\u89e6\u6478slide\u65f6\u8fd4\u56detrue<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.positions<\/strong>\u00a0-\u8fd4\u5bf9\u5bf9\u8c61\u5bb9\u5668\u7684x\u8f74\u4e0ey\u8f74\u503c<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.touches<\/strong>\u00a0-\u8fd4\u56de\u5bf9\u8c61\u7684\u4fe1\u606f<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.params<\/strong>\u00a0\u2013 \u8bbf\u95ee\u5bf9\u8c61\u4e0e\u4f20\u9012\u7684\u53c2\u6570\u521d\u59cb\u5316.\u521d\u59cb\u5316\u540e\u4f60\u53ef\u4ee5\u91cd\u5b9a\u4e49\u53c2\u6570, \u50cf<code style=\"color: #dd1144;\">mySwiper.params.speed=500<\/code><\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.getWrapperTranslate(axis)<\/strong>\u00a0\u2013 \u8fd4\u56de\u5bf9\u8c61\u5bb9\u5668\u7684\u53d8\u5f62\u504f\u79fb\u91cf\uff0c\u50cf\u7d20\u4e3a\u5355\u4f4d\u3002 &#8220;translate&#8221;\/offset (in px). &#8220;axis&#8221; \u2013 \u4e3a\u5b57\u7b26 &#8220;x&#8221;(\u6a2a\u5c4f) \u6216 &#8220;y&#8221; (f\u76f4\u5c4f)<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.setWrapperTranslate(x,y,z)<\/strong>\u00a0-\u624b\u52a8\u7ed9\u5bf9\u8c61\u5bb9\u5668\u8bbe\u5b9aCSS3\u7684\u8f6c\u6362\u6570\u503c\uff0c\u5355\u4f4d\u4e3a\u50cf\u7d20<\/li>\n<li><strong style=\"font-weight: bold;\">mySwiper.wrapperTransitionEnd(callback,permanent)<\/strong>\u00a0\u2013 \u81ea\u5b9a\u4e49\u56de\u8c03\u51fd\u6570\uff0c\u5728transitionEnd\u201d\u4e8b\u4ef6\u540e\u89e6\u53d1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table style=\"color: #555555;\">\n<thead>\n<tr class=\"firstRow\">\n<th>\u53c2\u6570<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u4f8b\u5b50<\/th>\n<th><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>speed<\/td>\n<td>number<\/td>\n<td>300<\/td>\n<td>600<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>eventTarget<\/td>\n<td>string<\/td>\n<td>&#8216;wrapper&#8217;<\/td>\n<td>&#8216;container&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>autoplay<\/td>\n<td>number<\/td>\n<td>5000<\/td>\n<td>\u2013<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>autoplayDisableOnInteraction<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>autoplayStopOnLast<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>mode<\/td>\n<td>string<\/td>\n<td>&#8216;horizontal&#8217;<\/td>\n<td>&#8216;vertical&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>loop<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>loopAdditionalSlides<\/td>\n<td>number<\/td>\n<td>0<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>loopedSlides<\/td>\n<td>number<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slidesPerView<\/td>\n<td>numberor&#8217;auto&#8217;<\/td>\n<td>1<\/td>\n<td>4<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slidesPerViewFit<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slidesPerGroup<\/td>\n<td>number<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>calculateHeight<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>roundLengths<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>cssWidthAndHeight<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>updateOnImagesReady<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>releaseFormElements<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>watchActiveIndex<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>visibilityFullFit<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>autoResize<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>resizeReInit<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>DOMAnimation<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>resistance<\/td>\n<td>booleanor&#8217;100%&#8217;<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>noSwiping<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>preventLinks<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>preventLinksPropagation<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>initialSlide<\/td>\n<td>number<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>useCSS3Transforms<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">Free Mode and Scroll Container<\/td>\n<\/tr>\n<tr>\n<td>freeMode<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>freeModeFluid<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>scrollContainer<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>momentumRatio<\/td>\n<td>number<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>momentumBounce<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>momentumBounceRatio<\/td>\n<td>number<\/td>\n<td>1<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">Slides offset<\/td>\n<\/tr>\n<tr>\n<td>centeredSlides<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>offsetPxBefore<\/td>\n<td>number<\/td>\n<td>0<\/td>\n<td>100<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>offsetPxAfter<\/td>\n<td>number<\/td>\n<td>0<\/td>\n<td>100<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>offsetSlidesBefore<\/td>\n<td>number<\/td>\n<td>0<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>offsetSlidesAfter<\/td>\n<td>number<\/td>\n<td>0<\/td>\n<td>2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">Touch\/mouse interactions<\/td>\n<\/tr>\n<tr>\n<td>touchRatio<\/td>\n<td>number<\/td>\n<td>1<\/td>\n<td>0.8<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>simulateTouch<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onlyExternal<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>followFinger<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>grabCursor<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>shortSwipes<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>longSwipesRatio<\/td>\n<td>number<\/td>\n<td>0.5<\/td>\n<td>0.3<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>moveStartThreshold<\/td>\n<td>number<\/td>\n<td>false<\/td>\n<td>100<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>swipeToNext<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>swipeToPrev<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">Navigation<\/td>\n<\/tr>\n<tr>\n<td>keyboardControl<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>mousewheelControl<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>mousewheelControlForceToAxis<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\"><strong style=\"font-weight: bold;\">\u5206\u9875<\/strong><\/td>\n<\/tr>\n<tr>\n<td>pagination<\/td>\n<td>string or HTML Element<\/td>\n<td>\u2013<\/td>\n<td>&#8216;.my-pagination&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationClickable<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationAsRange<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>createPagination<\/td>\n<td>boolean<\/td>\n<td>true<\/td>\n<td>false<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\">Namespace<\/td>\n<\/tr>\n<tr>\n<td>wrapperClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-wrapper&#8217;<\/td>\n<td>&#8216;my-wrapper&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slideClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-slide&#8217;<\/td>\n<td>&#8216;my-slide&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slideActiveClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-slide-active&#8217;<\/td>\n<td>&#8216;my-active-slide&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slideVisibleClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-slide-visible&#8217;<\/td>\n<td>&#8216;my-visible-slide&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>slideElement<\/td>\n<td>string<\/td>\n<td>&#8216;div&#8217;<\/td>\n<td>&#8216;li&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>noSwipingClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-no-swiping&#8217;<\/td>\n<td>&#8216;stop-swiping&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationElement<\/td>\n<td>string<\/td>\n<td>&#8216;span&#8217;<\/td>\n<td>&#8216;div&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationElementClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-pagination-switch&#8217;<\/td>\n<td>&#8216;my-switch&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationActiveClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-active-switch&#8217;<\/td>\n<td>&#8216;my-active-switch&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>paginationVisibleClass<\/td>\n<td>string<\/td>\n<td>&#8216;swiper-visible-switch&#8217;<\/td>\n<td>&#8216;my-visible-switch&#8217;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"5\"><strong style=\"font-weight: bold;\">\u56de\u8c03<\/strong><\/td>\n<\/tr>\n<tr>\n<td>queueStartCallbacks<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>queueEndCallbacks<\/td>\n<td>boolean<\/td>\n<td>false<\/td>\n<td>true<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onFirstInit<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onInit<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSwiperCreated<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onTouchStart<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onTouchMove<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onTouchEnd<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideReset<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideChangeStart<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper, direction){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideChangeEnd<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper, direction){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideNext<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlidePrev<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideClick<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSlideTouch<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onImagesReady<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onMomentumBounce<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onResistanceBefore<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper,p){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onResistanceAfter<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper,p){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSetWrapperTransition<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper, duration){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>onSetWrapperTransform<\/td>\n<td>function<\/td>\n<td>\u2013<\/td>\n<td>function(swiper, transform){ do something }<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre>$(document).ready(function(){\r\n var mySwiper = new Swiper('.swiper-container',{\r\n mode:'vertical',\r\n speed: 600, onSlideChangeStart: function(swiper){\r\n alert('Hello 1');\r\n }\r\n }); \r\n});<\/pre>\n<p><a href=\"http:\/\/www.jqcool.net\/jquery-swiper.html\" target=\"_blank\">http:\/\/www.jqcool.net\/jquery-swiper.html<\/a><\/p>\n<p>\u6848\u4f8b<a href=\"http:\/\/www.jqcool.net\/demo\/201412\/jquery-swiper\/\" target=\"_blank\">http:\/\/www.jqcool.net\/demo\/201412\/jquery-swiper\/<\/a><\/p>\n<p><a href=\"http:\/\/pan.baidu.com\/s\/1sjPt3kD\" target=\"_blank\">http:\/\/pan.baidu.com\/s\/1sjPt3kD<\/a><\/p>\n<p>\u4f7f\u7528\u76f4\u63a5\u4e0b\u8f7d\uff1a<a href=\"http:\/\/pan.baidu.com\/s\/1i3hCxMH\" target=\"_blank\">\u00a0http:\/\/pan.baidu.com\/s\/1i3hCxMH<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b64\u63d2\u4ef6\u517c\u5bb9IE7\u4ee5\u4e0a\u6d4f\u89c8\u5668\uff0c\u4e4b\u524d\u4e5f\u6709\u4ecb\u7ecd\u8fc7\u7c7b\u4f3c\u7684\u63d2\u4ef6swipe.js\uff0c\u4f46\u662f\u6ca1idangerous.swiper [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3821","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3821"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3821\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}