简体中文 | English
uni-app
is a unified front-end framework that uses Vue.js
to develop applet, H5, and App. Official website address: https://uniapp.dcloud.io
Developers use Vue
syntax to write code, and uni-app
framework compiles it into small programs (WeChat/Alipay/Baidu/ByteDance/QQ/Kuishou/Dingding/Xiaohongshu), App (iOS/Android) ), H5 and other platforms to ensure its correct operation and achieve an excellent experience.
Develop once, compile to 3 platforms. Scan 3 QR codes in sequence to experience the most comprehensive cross-platform effect for yourself!
uni-app
supports two ways to quickly create projects through the vue-cli
command line and the HBuilderX
visual interface:
Case show: uniapp.dcloud.io/case
Welcome to submit your application, uni-app case collection
The function points supported by the uni-app
plan will be displayed on the demand wall, and the voting opinions of developers will be collected. Go to Vote.
uni-app
has always maintained high-frequency update iterations. For details, see Official version update log, [Alpha version update log](https://uniapp. dcloud.net.cn/release-note-alpha).
Since DCloud
has more than 70 QQ and WeChat groups, the official has been unable to maintain more communication groups. Please go to the official forum to communicate: https://ask.dcloud.net.cn/explore/. Forums provide more professional tools and services than issues.
uni-app
has a rich plugin ecosystem. Many developers have submitted thousands of components, sdk, and project templates. For details, see: https://ext.dcloud.net.cn/
In addition to many third-party ui libraries, the official also provides uni-ui, which has stronger advantages in performance and cross-end compatibility. For details, see: https://ext.dcloud.net.cn/plugin?id=55
Q: Different terminals have different needs and features, and login and payment are also different. How to unify?
A: The difference part uses conditional compilation. uni-app provides flexible and powerful conditional compilation. Can perfectly handle the multiplexed part and the difference part. A real set of project source code. When the business is upgraded, multi-terminal maintenance is no longer required. If there is multi-end maintenance, it is often delayed because the traffic on some ends is not large, so that those users cannot enjoy the latest services. In addition, the login payment in the client part has been unified into the same api by uni-app.
Q: Is multi-terminal a compromise and will it cause performance degradation?
A: good question. It's really hard to be multi-terminal without compromising performance, but uni-app does it. On the h5 side, its performance and package size are consistent with those developed directly using vue.js; on the applet side, its performance is better than most development frameworks. It is better for the user to manually write setdata, just as it is more efficient to use vue.js to update the interface than to manually write js to modify the dom; in App, uni-app supports dual engines for webview rendering and native rendering. When native rendering is enabled, css writing is limited, However, the performance is very close to the effect of native development. In the current mobile phone environment, applications with less than ten million daily activities will not encounter any pressure when using uni-app in the App. Of course, it is also possible to change some pages to uni-app in the native app that has already been done; in addition, we will complete a lot of cross-end processing at the compile time, which will reduce the efficiency impact on the runtime.
Q: Do you not need uni-app if you don't do multi-end?
A: No. A large number of developers use uni-app as only one end, see Case for details. For developers, with an excellent tool in hand, there is nothing to worry about.
Q: Will uni-app change the open source protocol and switch to charging in the future?
A: The official promise will never change the open source agreement. Regardless of HBuilderX, uni-app, or App, it is always free for Chinese people.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。