当前位置:网站首页>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 */边栏推荐
- 设计电商秒杀
- Leetcode: lucky number in matrix
- 鸿蒙第三次培训
- Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
- 29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
- What is your income level in the country?
- One brush 146 force buckle hot question-3 longest substring without repeated characters (m)
- How do large consumer enterprises make digital transformation?
- [RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
- [try to hack] active detection and concealment technology
猜你喜欢

Kubernetes resource object introduction and common commands (III)

PS screen printing brush 131, many illustrators have followed suit

One brush 145 force deduction hot question-2 sum of two numbers (m)

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

Select 3 fcpx plug-ins. Come and see if you like them

TensorBoard快速入门(Pytorch使用TensorBoard)

Redis: operation commands for list type data

Analysis of variance summary

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

Redis:关于列表List类型数据的操作命令
随机推荐
Static program analysis (I) -- Outline mind map and content introduction
One brush 144 force deduction hot question-1 sum of two numbers (E)
Redis: operation commands for list type data
SVN完全备份svnadmin hotcopy
Where is the database account used when running SQL tasks in data warehouse tasks configured
跨境电商:外贸企业做海外社媒营销的优势
When absolutely positioned, the element is horizontally and vertically centered
Rsync remote synchronization
[error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
Great changes! National housing prices fell below the 10000 yuan mark
手把手带你入门 API 开发
Is AI too slow to design pictures and draw illustrations? 3 sets of practical brushes to save you
Qt调节Win屏幕亮度和声音大小
[RT thread] NXP rt10xx device driver framework -- RTC construction and use
QT学习日记9——对话框
鸿蒙第三次培训
AcWing 3438. Number system conversion
[combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
新库上线 | CnOpenData中国保险机构网点全集数据
Kubernetes resource object introduction and common commands (III)