Mobile device Web Development Preferred Framework: ZEPTOJS Introduction _ Other

Source: Internet
Author: User
Tags touch

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.