Home > Web Front-end > JS Tutorial > The preferred framework for web development on mobile devices: Introduction to zeptojs_Others

The preferred framework for web development on mobile devices: Introduction to zeptojs_Others

WBOY
Release: 2016-05-16 16:17:10
Original
1338 people have browsed it

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:

Copy code The code is as follows:

<script><br> document.write('<script src=' <br /> ('__proto__' in {} ? 'zepto' : 'jquery') <br /> '.js></script>')

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template