当前位置:网站首页>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 */边栏推荐
- Visual studio "usually, each socket address (Protocol / network address / port) can only be used once“
- SVN如何查看修改的文件记录
- Cross border e-commerce: advantages of foreign trade enterprises in overseas social media marketing
- How do large consumer enterprises make digital transformation?
- Take you to API development by hand
- 【RT-Thread】nxp rt10xx 设备驱动框架之--hwtimer搭建和使用
- Select 3 fcpx plug-ins. Come and see if you like them
- SVN完全备份svnadmin hotcopy
- [combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
- One brush 142 monotone stack next larger element II (m)
猜你喜欢

2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)

【Try to Hack】主动侦查隐藏技术

Free data | new library online | cnopendata complete data of China's insurance intermediary outlets

静态程序分析(一)—— 大纲思维导图与内容介绍
![[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework](/img/df/a7719bcb00ff66e21f3a391ab94573.png)
[RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework

Is AI too slow to design pictures and draw illustrations? 3 sets of practical brushes to save you

Kubernetes resource object introduction and common commands (4)

One brush 149 force deduction hot question-10 regular expression matching (H)

Kotlin learning quick start (7) -- wonderful use of expansion

【RT-Thread】nxp rt10xx 设备驱动框架之--Audio搭建和使用
随机推荐
【Try to Hack】主动侦查隐藏技术
Leetcode: lucky number in matrix
New library online | cnopendata complete data of Chinese insurance institution outlets
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
Atom QT 16_ audiorecorder
Take you to API development by hand
Analysis of variance summary
SWM32系列教程4-端口映射及串口应用
鸿蒙第三次培训
One brush 147-force deduction hot question-4 find the median of two positive arrays (H)
Open vsftpd port under iptables firewall
AcWing 3438. 数制转换
An example of HP array card troubleshooting
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
大消费企业怎样做数字化转型?
【JokerのZYNQ7020】DDS_ Compiler。
Vs code plug-in korofileheader
Select 3 fcpx plug-ins. Come and see if you like them
[combinatorics] recursive equation (constant coefficient linear homogeneous recursive equation | constant coefficient, linear, homogeneous concept description | constant coefficient linear homogeneous
Kubernetes resource object introduction and common commands (III)