I recently saw an article that introduced a new js framework called zepto.js, which is suitable for mobile devices and desktop browsers in addition to the IE series. .
It is compatible with jquery API, so it is not difficult to learn or use. Its advantage over jquery is
1. He is young enough, only about 21k. . Fully functional.
2. Added mobile device touch events, eliminating the need to introduce other mobile phone frameworks such as jquery mobile again.
3. Although it is not compatible with IE, a compatible method is provided:
Because it is compatible with jquery's API, you don't have to worry about the events that will become invalid after referencing jquery on IE, except for 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, it is the preferred framework for developing web for mobile devices. . . . If you are interested, you can check out github: https://github.com/madrobby/
zepto official website: http://zeptojs.com