Giter Site home page Giter Site logo

miniminiquery's Introduction

MiNiMiNiQuery

参考了一些类jquery库,整合了一些自己的东西。 通过这个小工程可以大致了解jquery内部机制,模块分的很清楚,可以直接阅读源码。如果你喜欢,就给个star吧 :bowtie:

模块介绍

ajax模块

 * 支持getpost提交

  • 几个参数
   MQ.ajax({
     url:地址。默认是'/',
     type:提交方法。默认是'get',
     dataType:数据类型。text或者json。默认是json,
     data:发送的数据,
     success:成功回调,
     error:错误回调,
     complete:完成回调
   })

animate模块

 * 进行基本的动画,内部使用tween.js(参考张鑫旭),进行动画

  • 支持:
    linear,easeIn,easeOut,easeBoth,easeInStrong,easeOutStrong,easeBothStrong,elasticIn,elasticOutelasticBoth,backIn,backOut,backBoth,bounceIn,bounceOut,bounceBoth这几种动画形式。  
  • 几个参数
   MQ("获取元素").animate({json对象,表示要运动的属性},options)
    options:{
     fx:运动形式,上面动画形式的某一种,默认linear
     duration:期望运动的事件,毫秒单位,默认1000--1s,
     callback:运动结束的回调函数
    }

其他模块建议大家直接阅读源码,了解内部机制

miniminiquery's People

Contributors

zhaosaisai avatar zhang-xiao avatar

Watchers

James Cloos 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.