Recently saw an article, is introduced a new JS framework, named Zepto.js, he applies to mobile devices have desktop browsers in addition to IE series.
He is compatible with the jquery API, so it's not hard to learn or use it. His advantage over jquery is that
1. He is small enough, only about 21k. function and taste.
2. Increase the touch of mobile devices and other events, do not need to introduce another mobile phone framework such as jquery Mobile.
3. Although not compatible with IE but provides a compatible method:
Copy Code code as follows:
<script>
document.write (' <script src= ' +
(' __proto__ ' in {}? ' Zepto ': ' jquery ') +
' .js><\/script> ')
</script>
Because he's compatible with the jquery API, there's no need to worry about what happens when you reference jquery on IE, except touch and so on.
Desktop Browser:
1.Safari 5+ (Mac, Win)
2.Chrome 5+ (Win, Mac, Linux, Chrome OS)
3.Mozilla Firefox 4+ (Win, Mac, Linux)
4.Opera 10+ (Win, Mac, Linux)
Mobile browser:
1.iOS 4+ Safari
2.Chrome for Android
3.Chrome for IOS
4.Android 2.2+ Browser
5.webOS 1.4.5+ Browser
6.BlackBerry Tablet OS 1.0.7+ Browser
7.Amazon Silk 1.0+
8.Firefox for Android
9.Firefox OS Browser
10.Practically any webkit-based browsers/runtimes
In today's framework, he is the preferred framework for developing mobile device web .... Interested can look at the github:https://github.com/madrobby/
Zepto Official website: http://zeptojs.com