Home  >  Article  >  Web Front-end  >  What are the differences between uniapp and mpvue?

What are the differences between uniapp and mpvue?

藏色散人
藏色散人Original
2020-12-08 11:10:2312311browse

The difference between uniapp and mpvue: 1. uniapp is a framework that uses Vue.js to develop all front-end applications, while mpvue is a front-end framework that uses Vue.js to develop small programs; 2. uniapp inherits the native Most of the APIs of the mini program and so on.

What are the differences between uniapp and mpvue?

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, DELL G3 computer. This method is suitable for all brands of computers.

mpvue (see "https://github.com/Meituan-Dianping/mpvue" for the github address) is a front-end framework that uses Vue.js to develop small programs. The framework is based on the core of Vue.js. mpvue modifies the runtime and compiler implementation of Vue.js so that it can run in the mini program environment, thus introducing a complete set of Vue.js development experience for mini program development.

uni-app is a framework that uses Vue.js to develop all front-end applications. Developers write a set of codes that can be published to iOS, Android, Web (responsive), and various small programs (WeChat/ Alipay/Baidu/Toutiao/QQ/DingTalk/Taobao), Quick App and other platforms.

Comparing uni-app and mpvue to develop small programs?

I have been studying uni-app recently because the company needs to prepare small programs and H5 at the same time. I compared some frameworks online and found that uni-app is more suitable for this kind of development. Here are the native codes and Compare the three frameworks of uni-app and mpvue, and you will know why:

uni-app inherits most of the APIs of the native applet, and the usage is the same as the native applet, so this is basically There will be no incompatibility issues. The API in the mini program can also be used in mpvue, but what should I do if I switch to H5 after using it?

In terms of performance, the official website video of uni-app has been compared. Although I don’t know whether it is true or false, the interactive experience of the page is no different from that of the native applet. Generally speaking, it is When the amount of data loaded on a single page is not large, at this time, the page rendering performance of the native applet and uni-app is basically the same, but mpvue is much worse.

mpvue and uni-app both inherit the syntax of vue, but uni-app is relatively cool. It completely inherits the components of the mini program and the api of the mini program, and is closer to the native mini program. development, so it is still recommended

and the method of converting to H5 is also very simple. When packaging, just package the code into H5 and run it. After comparison, there is no difference between the mini program page and the H5 page. Consistent, here I have to praise uni-app's own pixel unit "upx". For specific upx, you can go to the official website to see

Recommended (free): uni-app development tutorial

The above is the detailed content of What are the differences between uniapp and mpvue?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:What can uniapp do?Next article:What can uniapp do?