当前位置:网站首页>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 */边栏推荐
- 跨境电商:外贸企业做海外社媒营销的优势
- AcWing 3438. 数制转换
- Where is the database account used when running SQL tasks in data warehouse tasks configured
- [combinatorics] recursive equation (special solution form | special solution solving method | special solution example)
- [RT thread] construction and use of --hwtimer of NXP rt10xx device driver framework
- 鸿蒙第四次培训
- [combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
- VM11289 WAService. js:2 Do not have __ e handler in component:
- 1164 Good in C
- 企业级自定义表单引擎解决方案(十一)--表单规则引擎1
猜你喜欢

【RT-Thread】nxp rt10xx 设备驱动框架之--rtc搭建和使用

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

Static program analysis (I) -- Outline mind map and content introduction

Collection of the most beautiful graduation photos in the graduation season, collection of excellent graduation photos

PS screen printing brush 131, many illustrators have followed suit

新库上线 | CnOpenData中国保险机构网点全集数据

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

【RT-Thread】nxp rt10xx 设备驱动框架之--Audio搭建和使用

国内如何购买Google Colab会员
![[RT thread] NXP rt10xx device driver framework -- Audio construction and use](/img/85/32a83eaa4b7f5b30d4d7c4f4c32791.png)
[RT thread] NXP rt10xx device driver framework -- Audio construction and use
随机推荐
One brush 149 force deduction hot question-10 regular expression matching (H)
图之深度优先搜索
Thread pool: the most common and error prone component of business code
One brush 146 force buckle hot question-3 longest substring without repeated characters (m)
University of Electronic Science and technology, accounting computerization, spring 20 final exam [standard answer]
Visual studio "usually, each socket address (Protocol / network address / port) can only be used once“
问题随记 —— 在 edge 上看视频会绿屏
[combinatorics] recursive equation (example of solving recursive equation without multiple roots | complete process of solving recursive equation without multiple roots)
Qt调节Win屏幕亮度和声音大小
[JDBC] API parsing
Dagong 21 autumn "power plant electrical part" online operation 1 [standard answer] power plant electrical part
RedHat 6.2 configuring ZABBIX
[combinatorics] recursive equation (characteristic equation and characteristic root | example of characteristic equation | root formula of monadic quadratic equation)
聊聊接口优化的几个方法
SSH连接远程主机等待时间过长的解决方法
[combinatorics] recursive equation (the problem of solving recursive equation with multiple roots | the problem is raised)
2021 ICPC regional competition (Shanghai) g.edge groups (tree DP)
The largest matrix (H) in a brush 143 monotone stack 84 histogram
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]