GithubHelp home page GithubHelp logo

forchange's Introduction

可想造一个属于你自己的jQuery库?


前言

  • 1.给一些很想自己实现一个jQuery或者是对实现jQuery非常好奇的人
  • 2.想提升自己js基础的小伙伴
  • 3.本教程系列不考虑兼容和性能问题,只考虑如何利用各种巧妙的方法去实现一个一模一样的API
  • 4.从dom操作一直到事件机制on(),off(),全会逐一实现(事件机制是本人思考后的另类设计,纯原创)

本人一直很想自己造个jQuery的小库,第一是满足下自己,第二是去体验下jQuery内部的基情!

虽然jQuery很多源码看不懂,但是凭借着对jQuery的API实现的效果,我也基本实现了这样一个类库.

由于自己看别人源码的时候经常会想,作者要是能一步一步的告诉我他是怎么写怎么想的就好了 :).

接下来,我会在每一个version里写下我每一步的想法,让你了解到你如何也能自己造一个这样的轮子.

希望我的做法能给你带来许多的启发.(即使我在里面写的代码实在是不值得一提)

另外您的star,是我的最大动力!

TO DO LIST

  • 1.css操作
  • 2.class 操作
  • 3.attr和data 操作
  • 4.简单的dom选择
  • 5.dom操作
  • 6.ajax
  • 7.each循环
  • 8.after && before 插入
  • 9.事件委托
  • 10.tap实现(番外篇)
  • 11.简单的一些手势(番外篇)

forchange's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.