当前位置:网站首页>Wechat applet for the first time
Wechat applet for the first time
2022-07-03 17:20:00 【zzuli Pwn】
His notes : Youdao cloud notes (youdao.com)
Section 1 :
I don't know what to say in the first half of the introduction
The second half talks about the advantages of wechat applet development
The second is :
frame 、 Components 、API Development of cloud
AppID
I talked about the icons and function distribution of the software
The third is :
app.json( Holistic )pages You can add the file name directly Make a new folder (4 Necessary documents )
div --> view
- project.config.json Project profile , Do some personalized configuration , For example, interface color 、 Compile configuration, etc
- app.json Global configuration of the current applet , Including all the page paths of the applet 、 Interface performance 、 Network timeout 、 Bottom tab etc.
- sitemap Configure whether the applet and its page can be indexed by wechat
- pages It contains specific pages
- wxss Page style ,app.wxss As a global style , It will work on all pages of the current applet , Partial page styles page.wxss Only valid for the current page .
- app.js The logic of the applet
- js Page logic
- json Configuration page
- wxml Page structure
Many are directly put in the code
index.wxml
<view class="box" hover-class="box_hover">
<view class="item" hover-class="item_hover" hover-stop-propagation> Inside </view>
This is the beginning ....</view>
<!-- hover-stop-propagation Defined as true Prevent foaming That is, the child event affects the parent event -->
<text> Text information </text>
<!-- text Equate to span Don't wrap
selectable Whether the text can be selected
space Whether to display multiple spaces
decode Whether it can be decoded analysis < ( Space ) -->
<!-- Because the maximum limit is 2MB Pictures to use http Pass on Image online compression tool -->
<image src="../../images/ppt.png" mode="widthFix" show-menu-by-longpress></image>
<!-- aspectFit There will be up and down gaps -->
<!-- <image src="/images/ppt.png"></image> One / You can reach the root directory -->
<!-- image A single label must end with / End of expression It's actually a box Custom size -->
<!-- Hyperlinks URL You can't introduce the Internet , Only between applets Folder name / file name ( Generally the same ) -->
<navigator url="/pages/logs/logs" class="rizhi"> Access log </navigator>
<!-- tabBar Bottom navigation bar open-type Just got to know -->
<!-- Scroll view -->
<scroll-view scroll-left="150" scroll-x>
<view class="scrout" >
<view class="scrbox">111</view>
<view class="scrbox">222</view>
<view class="scrbox">333</view>
<view class="scrbox">444</view>
<view class="scrbox">555</view>
</view>
</scroll-view>
index.wxss
.box{ width: 100px; height: 100px; background-color: red;}
.box_hover{background-color: royalblue;}
.item{ width: 50px; height: 50px; background-color: yellow;}
.item_hover{background-color: green;}
.rizhi{ width: 70px;}
.scrout{display: flex; flex-wrap: nowrap;}
.scrbox{width: 100px; height: 100px; background-color: pink; margin-right: 2px; flex: 0 0 100px;}
/* He said 0 0 Did not understand */
边栏推荐
- Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
- Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)
- Kotlin学习快速入门(7)——扩展的妙用
- [error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
- 1164 Good in C
- Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
- How to train mask r-cnn model with your own data
- One brush 145 force deduction hot question-2 sum of two numbers (m)
- QT学习日记9——对话框
- Golang单元测试、Mock测试以及基准测试
猜你喜欢
kubernetes资源对象介绍及常用命令(四)
New features of C 10
vs2013已阻止安装程序,需安装IE10
Notes on problems -- watching videos on edge will make the screen green
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Thread pool: the most common and error prone component of business code
Kubernetes resource object introduction and common commands (III)
Select 3 fcpx plug-ins. Come and see if you like them
Kubernetes resource object introduction and common commands (4)
Build your own website (23)
随机推荐
Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
HP 阵列卡排障一例
基于主机的入侵系统IDS
Test your trained model
Take you to API development by hand
Analysis of variance summary
Depth first search of graph
TensorBoard快速入门(Pytorch使用TensorBoard)
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
One brush 142 monotone stack next larger element II (m)
POM in idea XML graying solution
人生还在迷茫?也许这些订阅号里有你需要的答案!
Electronic technology 20th autumn "Introduction to machine manufacturing" online assignment 3 [standard answer]
Hongmeng third training
Open vsftpd port under iptables firewall
[RT thread] NXP rt10xx device driver framework -- pin construction and use
Static program analysis (I) -- Outline mind map and content introduction
Svn full backup svnadmin hotcopy
Where is the database account used when running SQL tasks in data warehouse tasks configured
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。