# 可想造一個屬于你自己的jQuery庫?
> 作者:[MeCKodo](https://github.com/MeCKodo)
> 來源:[forchange](https://github.com/MeCKodo/forchange)
---
- [x] 0.[講解基礎框架格式](https://github.com/MeCKodo/forchange/tree/master/lesson-0)
- [x] 1.[初步體驗](https://github.com/MeCKodo/forchange/tree/master/lesson-1)
- [x] 2.[新增next,prev,parent,parents](https://github.com/MeCKodo/forchange/tree/master/lesson-2)
- [x] 3.[完善init方法](https://github.com/MeCKodo/forchange/tree/master/lesson-3)
- [x] 4.[新增必備方法each](https://github.com/MeCKodo/forchange/tree/master/lesson-4)
- [x] 5.[新增find,last,eq,get,first,ajax](https://github.com/MeCKodo/forchange/tree/master/lesson-5)
- [x] 6.[完善hasClass和css 方法 新增data和attr方法](https://github.com/MeCKodo/forchange/tree/master/lesson-6)
- [x] 7.[新增html,remove,after,append,before方法](https://github.com/MeCKodo/forchange/tree/master/lesson-7)
- [x] 8.[引入delegate機制](https://github.com/MeCKodo/forchange/tree/master/lesson-8)
- [x] 9.[如何實現on與off](https://github.com/MeCKodo/forchange/tree/master/lesson-9)
- [x] 10.[實現事件委托](https://github.com/MeCKodo/forchange/tree/master/lessonn-10)
- [x] 11.[最后一節補充width,height,extend](https://github.com/MeCKodo/forchange/tree/master/lessonn-11)
## 前言
> * 1.給一些很想自己實現一個jQuery或者是對實現jQuery非常好奇的人
> * 2.想提升自己js基礎的小伙伴
> * 3.本教程系列不考慮兼容和性能問題,只考慮如何利用各種巧妙的方法去實現一個一模一樣的API
> * 4.從dom操作一直到事件機制`on(),off()`,全會逐一實現(事件機制是本人思考后的另類設計,純原創)
本人一直很想自己造個jQuery的小庫,第一是滿足下自己,第二是去體驗下jQuery內部的基情!
雖然jQuery很多源碼看不懂,但是憑借著對jQuery的API實現的效果,我也基本實現了這樣一個類庫.
由于自己看別人源碼的時候經常會想,作者要是能一步一步的告訴我他是怎么寫怎么想的就好了 :).
接下來,我會在每一個version里寫下我每一步的想法,讓你了解到你如何也能自己造一個這樣的輪子.
希望我的做法能給你帶來許多的啟發.(即使我在里面寫的代碼實在是不值得一提)
另外您的star,是我的最大動力!
### TO DO LIST
- [x] 1.css操作
- [x] 2.class 操作
- [x] 3.attr和data 操作
- [x] 4.簡單的dom選擇
- [x] 5.dom操作
- [x] 6.ajax
- [x] 7.each循環
- [x] 8.after && before 插入
- [x] 9.事件委托
- [x] 10.tap實現(番外篇)
- [x] 11.簡單的一些手勢(番外篇)