Zepto和jQuery 2有什么区别? [英] What is the difference between Zepto and jQuery 2?
问题描述
有两个类似的项目:
Zepto是用于现代浏览器的极简JavaScript库,具有 很大程度上与jQuery兼容的API.
Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API.
jQuery 2.0 beta:这是您对未来的口味,它可以更快,更小而无需支持IE 6、7或8.这是特定于平台的HTML应用程序的绝佳选择.
jQuery 2.0 beta: Here is your taste of the future, a jQuery that can be faster and smaller without the need to support IE 6, 7, or 8. It’s a great choice for platform-specific HTML applications.
这仅仅是关于性能还是它们遵循不同的方法?
Is this only about performance or do they follow different approaches?
推荐答案
Zepto.js和jQuery之间的主要区别是Zepto.js各自的文件大小为〜20kb(最小,未压缩),而不是jQuery的〜80kb,并且Zepto.js的〜10kb(最小化,压缩),而不是jQuery的〜30kb.此外,Zepto对IE<10
之类的浏览器的支持是缺乏或不能保证,其目标平台是:
The primary difference between Zepto.js and jQuery are their respective file sizes of Zepto.js's ~20kb (minified, not gzipped) instead of jQuery's ~80kb,And Zepto.js's ~10kb (minified, Gzipped) instead of jQuery's ~30kb. Furthermore, Zepto’s support for browsers such as IE<10
is either lacking or not guaranteed, its target platforms are:
- Safari 5+(台式机)
- Chrome 5+(台式机)
- Mozilla Firefox 4 +
- iOS 4+ Safari
- Android 2.2+浏览器
- 其他基于WebKit的浏览器/运行时
- webOS 1.4.5+浏览器
- BlackBerry Tablet OS 1.0.7+浏览器
- Amazon Silk 1.0 +
- Opera 10 +
- Internet Explorer 10 +
- Safari 5+ (desktop)
- Chrome 5+ (desktop)
- Mozilla Firefox 4+
- iOS 4+ Safari
- Android 2.2+ Browser
- Other WebKit-based browsers/runtimes
- webOS 1.4.5+ Browser
- BlackBerry Tablet OS 1.0.7+ Browser
- Amazon Silk 1.0+
- Opera 10+
- Internet Explorer 10+
这篇关于Zepto和jQuery 2有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!