当前位置:网站首页>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 */边栏推荐
- 简单配置PostFix服务器
- 图之深度优先搜索
- Applet setting multi account debugging
- 定义一个结构体Fraction,表示分数,用于表示 2/3, 5/6这样的分数
- What is the difference between cloud server and cloud virtual machine
- 跨境电商:外贸企业做海外社媒营销的优势
- SSH连接远程主机等待时间过长的解决方法
- Luogu: p1155 [noip2008 improvement group] double stack sorting (bipartite graph, simulation)
- Analysis of variance summary
- Answer to the homework assessment of advanced English reading (II) of the course examination of Fuzhou Normal University in February 2022
猜你喜欢

【JokerのZYNQ7020】DDS_ Compiler。

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

Kubernetes resource object introduction and common commands (III)

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

国内如何购买Google Colab会员

Unity notes unityxr simple to use

How to train mask r-cnn model with your own data

C语言按行修改文件
![[RT thread] NXP rt10xx device driver framework -- RTC construction and use](/img/19/91a9d84ba84f81ef125c33eb4007bc.png)
[RT thread] NXP rt10xx device driver framework -- RTC construction and use

Great changes! National housing prices fell below the 10000 yuan mark
随机推荐
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
The largest matrix (H) in a brush 143 monotone stack 84 histogram
静态程序分析(一)—— 大纲思维导图与内容介绍
Online assignment 3 of mobile Internet technology in the 20th autumn of electronic technology [standard answer]
AcWing 4489. Longest subsequence
新库上线 | CnOpenData中国保险机构网点全集数据
鸿蒙第四次培训
RDS数据库的监测页面在哪看?
Test your trained model
New library online | cnopendata complete data of Chinese insurance institution outlets
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
STM32H7 HAL库SPI DMA发送一直处于busy的解决办法
vs2013已阻止安装程序,需安装IE10
线程池:业务代码最常用也最容易犯错的组件
基于主机的入侵系统IDS
数仓任务里面 跑SQL任务的时候用的数据库账号是在哪里配置的
Redis: operation commands for list type data
A day's work list of an ordinary programmer
汇编实例解析--实模式下屏幕显示
Rsync远程同步