How to use uniapp: First, developers need to download and install HBuilderX; then create a project directory and create a page; then configure the page and tabbar; and finally run it.
The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.
Recommended (free): uni-app development tutorial
How to use uniapp:
1. First, developers need to download and install HBuilderX
1) In HBuilderX, click the file in the toolbar->New->Project:
2) Select uni-app, enter the project name, such as: test, click Create, and uni-app will be successfully created
2. Project directory
3. Create page
4. Page and tabbar configuration
{ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app" } }, { "path": "pages/homework/homework", "style": { "navigationBarTitleText": "uni-app" } }, { "path": "pages/personal/personal", "style": { "navigationBarTitleText": "uni-app" } } ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "uni-app", "navigationBarBackgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8" }, "tabBar": { "color": "#C3B8B4", "selectedColor": "#F76605", "borderStyle": "white", "backgroundColor": "#fff", "list": [ { "pagePath": "pages/index/index", "text": "学员", "iconPath": "static/indexNormal.png", "selectedIconPath": "static/indexActive.png" }, { "pagePath": "pages/homework/homework", "text": "作业", "iconPath": "static/homeworkNormal.png", "selectedIconPath": "static/homeworkActive.png" }, { "pagePath": "pages/personal/personal", "text": "我的", "iconPath": "static/personalNormal.png", "selectedIconPath": "static/personalActive.png" } ] } }
5. Run
6 .Operating renderings
##Related free learning recommendations:
The above is the detailed content of How to use uniapp. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
