Home Web Front-end uni-app The difference between uniapp and HTML5

The difference between uniapp and HTML5

Dec 09, 2020 am 10:23 AM
html5 uniapp

The difference between uniapp and HTML5: 1. uniapp is a framework that uses Vue.js to develop all front-end applications, while HTML5 is a language description method for building web content; 2. uniapp does not support dom operations, while H5 There is a DOM object on the end; 3. Uniapp does not support filters, etc.

The difference between uniapp and HTML5

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommendation (free): uni-app development tutorial

uniapp is a framework that uses Vue.js to develop all front-end applications. Developers write a set of codes to Publish to iOS, Android, Web (responsive), various mini programs (WeChat/Alipay/Baidu/Toutiao/QQ/DingTalk/Taobao), quick applications and other platforms.

HTML5 is a language description method for constructing web content. HTML5 is the next generation standard of the Internet and a language method for constructing and presenting Internet content. It is considered to be one of the core technologies of the Internet. HTML was created in 1990, and HTML4 became an Internet standard in 1997 and is widely used in the development of Internet applications.

Uniapp supports cross-mobile development. If you only do H5 end, using uniapp is actually no different from using vue for development. The plug-ins that can be used by vue can also be used by uniapp.

The performance problems of uniapp are mainly concentrated on the app side. The development experience of H5 and VUE is the same.

1. Differences in tags

2. Differences in components

3. Changes in JS

4. Main differences

uniapp The main difference from h5 is that uniapp does not support DOM operations (the H5 side has DOM objects) and does not support filters, which is consistent with the WeChat applet.

5. Common points

1. The common advantages of uniapp and h5: one end is multi-purpose, good for a single variety, simple, convenient, and compact.

2. The common shortcomings of uniapp and h5: compared with native, there is currently an unbridgeable gap in performance.

6. APP application architecture

uni-app can be compiled and packaged into a WebApp. Why do many people still use native APP shells? Doesn't this increase the burden? In fact, this is determined by the needs of the project. First use uni-app to develop the H5 end. For the time being, uni-app cannot achieve the goal, and then use the native APP to complete the interaction to meet specific needs.

1. Development aspects

(1) Native APP

Different mobile operating systems (iphone, ipad, Android) need to be developed separately. Development and maintenance costs are high, development speed is slow, and the APP online review process is complex and slow.

(2) WebApp

Because it runs on the browser of a mobile device, only one development project is required. The development cost is low and the development speed is fast.

2. In terms of functions

(1) The native APP

can call the hardware devices of the mobile terminal (microphone, camera, SMS, GPS, Bluetooth) to achieve rich functions.

(2) WebApp

is more of a page display APP than a computer-side web page. Only limited mobile hardware device functionality is available.

3. Application installation and version control

(1) Native APP

Installation: App Store|APP Store download, which can save bandwidth costs and access local resources. cache.

Version: Users are free to choose whether to update the version. Both old and new versions need to be maintained, and the maintenance cost is high

(2) WebApp

Installation: Accessed through the browser on the mobile device, software updates only require updating the server

Version: No installation is required, saving the memory space of mobile terminals. All users have the same version. The version update speed is convenient. Just update the data directly on the server and go online immediately

4. In terms of loading speed

( 1) The native APP

is composed of "cloud server data application client". All UI elements, data content, and logical framework of the APP are installed on the mobile terminal. When accessing, only the data needs to be loaded, and the application page frame does not need to be downloaded, so the loading speed is faster and the page response is faster. Can be used offline.

(2)WebApp

To open a page, all elements of the page need to be reloaded. The access speed is limited by the performance of the mobile terminal and the network environment, resulting in slow loading speed and frequent and easy operations. Stuck.

5. Hybrid APP

Advantages: compatible with multiple platforms, smooth access to mobile device functions, app store download (web application uses the shell of native application)

Disadvantages: user experience Not as good as native, performance is slightly slower

6. Summary

Native APP prefers interaction and focuses on user experience; Web App prefers simple interaction with the browser for information display. Some functions require access to hardware, so use the native APP.

The popular method now is to integrate the native APP with the Web App. The core functions use the native APP, and the auxiliary simple functions such as content display use the Web App. This facilitates updates and ensures the interactive experience of core functions.

The above is the detailed content of The difference between uniapp and HTML5. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1661
14
PHP Tutorial
1261
29
C# Tutorial
1234
24
Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

See all articles