文章分类

站点统计

  • 分类总数: 13 个
  • 文章总数: 145 篇
  • 评论总数: 35 条
  • 附件总数: 59 个
  • 建站日期: 2008-08-18
  • 访问总数: 387352 人次
  • RSS订阅: 文章|评论

小巧独立的Javascript库(3):Sizzle JavaScript Selector Library

KY8 于 2009-03-01 16:21:20 发表JavaScript

Sizzle是 一个纯js写的CSS选择器引擎,js大师Resig的作品.据说,相比其它主流javascript库,在Firefox 3下快4倍, Opera 9下快3倍, Safari 3下快1.5倍.而且Resig正在说服其它主流的javascrip库的基础CSS选择器引擎也采用Sizzle,目前准备引入Sizzle框架有: jQuery(1.3以上版本已经使用), MochiKit, Prototype, and Dojo.他们的目标也很简单,就是把大家的力量集中在一个统一的CSS选择器引擎上,不用各自为政.

A pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.

Features:

  • Completely standalone (no library dependencies)
  • Competitive performance for most frequently used selectors
  • Only 4KB minified and gzipped
  • Highly extensible with easy-to-use API
  • Designed for optimal performance with event delegation
  • Clear IP assignent (all code held by the Dojo Foundation, contributors sign CLAs)

Code Features:

  • Provides meaningful error messages for syntax problems
  • Uses a single code path (no XPath)
  • Uses no browser-sniffing
  • Caja-compatible code

Source Code:

http://github.com/jeresig/sizzle/tree/master

Discussion:

http://groups.google.com/group/sizzlejs

Documentation

http://wiki.github.com/jeresig/sizzle

点击下载

被阅797次, 0票Sizzle CSS Selector 发表评论
1 / 1 / 1 | « 1 » |
Powered by MiniBoke v2.0.0.8 Build 0828

Copyright © 2008 开源吧!. All rights reserved.

粤ICP备07500939号