Giter Site home page Giter Site logo

query-'s Introduction

自己封装了在移动端使用的框架(使用方法跟jQuery一样)

使用了html5 css3 等属性封装,所以比较适合在移动使用

有以下API

选择器跟扩展方法

	$()
	Query.extend 工具扩展
	Query.fn.extend 原型扩展
	

事件方法

	on()
	un()
	click()

css方法

		css()
	addClass()
	removeClass()
	hasClass()
	hide()
	show()
	toggleClass()

dom操作方法

	html()
	text()
	val()
	attr()
	append()
	before()
	after()
	prepend()

查找工具

	find()
	next()
	prev()
	eq()

ajax 模块

	$.ajax(obj)

	obj ={
		url: string,
		type: get | post, 
		param: {usrename:123},可选
		datatype: json | xml | text | html |jsonp ,
		async : true | false, (默认为true) 可选
		jsonp: 默认为callback,可选
		jsonpCallback: 默认为你添加一个函数名 myjsonp1492847033628,可选
		success: function(res),
		error: function()
	}

动画模块

	animation(params, speed, timing, callback)
	
	params 是一个对象 {'top':'240px','left':'600px'}

	speed  时间过程 '3s'

	timing 运动规律 ease-in | ease-out | ease-in-out | ease | linear

	callback 完成后的回调函数	

这里是 animation的例子, 狠狠的点击这里demo

query-'s People

Contributors

newyoung21 avatar

Stargazers

 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.