Skip to content

研究jQuery企图重写一遍,而产生的实验性脚本。目前仅实现了jQuery开发库的部分功能。代码编写截止2013年10月21日。

Notifications You must be signed in to change notification settings

springlong/jquery-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

关于jQuery Study

研究jQuery企图重写一遍,而产生的实验性脚本。目前仅实现了jQuery开发库的部分功能:

  1. DOM元素的查找使用Sizzle库。

  2. 元素集合的遍历和筛选:.get().index().pushStack().each().slice().eq().first().next().nextAll().nextUntil().prev().prevAll().prevUntil().siblings().children().contents().parent().parents().parentsUntil().closest().map().filter().not().is().has().find().add().addBack().end()等等。

  3. 样式、类名、属性的获取和修改:.addClass().removeClass().toggleClass().hasClass().attr().hasAttr().removeAttr().css()等等。

  4. DOM元素的操作:.empty().remove().prepend().prependTo().append().appendTo().before().insertBefore().after().insertAfter().replaceWith().replaceAll().wrapAll().wrap().wrapInner().unwrap().html().text()等等。

  5. 事件绑定:.bind().unbind().ready()、快捷事件绑定等等。

  6. 实用工具:$.noConflict()$.extend()$.each()$.contains()$.merge()$.map()$.makeArray()等等。

  7. 类型判断:$.isString()$.isNumeric()$.isFunction()$.isArray()$.isArrayLike()$.isDate()$.isPlainObject()$.isEmptyObject()$.isWindow()等等。

该脚本代码编写截止时间2013年10月21日。

目前该脚本文件可以方便日后查看,帮助实现思路,还是有一定好处的。

About

研究jQuery企图重写一遍,而产生的实验性脚本。目前仅实现了jQuery开发库的部分功能。代码编写截止2013年10月21日。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published