This article mainly introduces the preferred framework for mobile device web development: zeptojs, which is compatible with jquery APIs, so it is not difficult to learn or use it, you can refer to a recent article about a new js framework named zepto. js, which is applicable to mobile devices that already have desktop browsers except the ie series ..
It is compatible with jquery APIs, so it is not difficult to learn or use them. His advantage over jquery lies in
1. He is small enough, only about 21 K .. Feature enabled.
2. added mobile device touch events and other events. You do not need to introduce other mobile phone frameworks, such as jquery mobile.
3. Although not compatible with ie, it provides a compatibility method:
The Code is as follows:
Script
Document. write (''. Js> <\/script> ')
Script
Because it is compatible with jquery APIs, you don't have to worry about events that will expire after jquery is referenced on ie, except for touch ..
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 frameworks, he is the preferred framework for developing mobile device web .... Interested can look at github: https://github.com/madrobby/
Zepto Official Website: http://zeptojs.com