老師的思路是定義了一個 PageSwitch 的類,然后利用$(this)的data方法將這個類的一個實例儲存到this上了。至于為什么要return this.each(),這是為了滿足jQuery的鏈式調用??床欢耐瑢W說明基礎不夠扎實啊,大家加油吧。
2018-02-13
每個課程章節的源代碼和一些神神叨叨在這,地址:https://github.com/CruxF/IMOOC/tree/master/jQuery
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
2018-02-05
每個課程章節的源代碼和一些神神叨叨在這,地址:https://github.com/CruxF/IMOOC/tree/master/jQuery
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
2018-02-05
每個課程章節的源代碼和一些神神叨叨在這,地址:https://github.com/CruxF/IMOOC/tree/master/jQuery
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
2018-02-05
每個課程章節的源代碼和一些神神叨叨在這,地址:https://github.com/CruxF/IMOOC/tree/master/jQuery
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
課程最終效果展示在這,地址:https://cruxf.github.io/IMOOC/jQuery/FullScreen/index2-5.html
2018-02-05
說實在的老師講的確實不夠明了,對初學者不甚友好。但是老師講的是jquery高級編程中的插件部分,如果沒有基礎聽來確實難以理解。這里有一個網址,比較好的講解了jquery插件基礎,大家可以看下。
https://www.cnblogs.com/ajianbeyourself/p/5815689.html
https://www.cnblogs.com/ajianbeyourself/p/5815689.html
2017-12-04