Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A

Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A
1 / 1
Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 1 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 2 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 3 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 4 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 5 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 6 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 7 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 8 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 9 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 10 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 11 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 12 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 13 of 14 Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A - slide 14 of 14
Sizzle引擎研究 By zhangpeng12baidu.com 什么是sizzle A pure-JavaScript CSS selector engine (power jQuery) Standalone(no dependencies) Competitive performance Only 4kB with gzipped Easy to use Css3 support Bla bla 为什么需要sizzle Bugs 1. Id

Related Topics

Download this presentation From Below

"Sizzle引擎研究 By zhangpeng12@baidu.com 什么是sizzle A" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Sizzle引擎研究 By zhangpeng12@baidu.com<br>
02
什么是sizzle A pure-JavaScript CSS selector engine (power jQuery) Standalone(no dependencies)
Competitive performance
Only 4kB with gzipped
Easy to use
Css3 support
Bla bla ……<br>
03
为什么需要sizzle Bugs
1. Id
IE<=8不区分大小写,混淆iuput的name和id
2. class
IE getAttribute ,混淆html的attribute和dom的property
非IE getElementsByClassName
3.Tag
getElementsByTagName(*)混淆注释节点 性能
考虑如下选择器:
div.container li:last-of-child a,div.container ul+a
var mySelector = function(){
bla bla…….
There gone be at least 100 lines here…….
bla bla…….
}<br>