Giter Club home page Giter Club logo

jquery-zepto-plugin-patterns's Introduction

jquery / zepto plugin patterns

提供较为优秀的插件写法模板,妈妈再也不用担心我不会写插件了。

下载jq或zepto插件模板,然后在相应的位置写上你的插件代码,无需再关注代码组织逻辑。

##后续 在这里留了个小悬念,如果调用带参数的方法,则以下这句需要修改一下

if (typeof options === 'string') instance[options]();

修改为

if (typeof options === 'string') instance[options].apply(instance,[].slice.call(arguments, 1));

##来源 http://www.ghugo.com/jq-zepto-template-write-patterns/

Changelog

  • v0.1 项目创建

Other

My Blog

jquery-zepto-plugin-patterns's People

Contributors

hugohua avatar mebusw avatar

Watchers

James Cloos avatar  avatar

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.