当前位置:网站首页>Small program learning path 1 - getting to know small programs
Small program learning path 1 - getting to know small programs
2022-06-30 09:09:00 【Ancient dust left Taidao】
Registered account
1. Go first WeChat public platform Registered account
2. Download wechat developer tools
3. Open the wechat developer tool wechat scanning QR code to log in , Create a new item after login . I chose not to use cloud services , Cloud services are similar to providing you with servers for free , It's backstage . Then type in your appId.

Directory structure

A page , A folder , Just index Folder
- js The file deals with your logic
- wxml The file is similar to your html file
- wxcss The file is similar to your css file
- json Files are configuration files ( I haven't learned this yet )
Hello World
index.wxml Code
<!--index.wxml-->
<view class="container">
{
{ message }}
</view>
index.js Code
Page({
data: {
message: 'hello world1'
}
})
Such a Hello world It's coming out. 
List loop
index.js Code
Page({
data: {
books: ['java', 'python', 'javaScript']
}
})
index.wxml
<block wx:for="{
{books}}" wx:key="*this">
<view>{
{ item }}</view>
</block>
*this I mean this item term ,item It's every item in the array
result :

summary
Fortunately, I did vue, I feel confused when I start the applet directly .
- The list loop is also bound key Of .
- wx:for Namely vue Of v-for,*this Refer to item,item It's every item in the array
- block I understood as a vue Of template node , Because it does not generate additional nodes
边栏推荐
- Maxiouassigner of mmdet line by line interpretation
- Bottomsheetbehavior principle of realizing the home page effect of Gaode map
- Mmcv expanding CUDA operator beginner level chapter
- C # get the current timestamp
- Introduction to MySQL basics day3 power node [Lao Du] class notes
- Esp32 things (I): Preface
- Advanced technology management -- how managers design and build echelons
- Raspberry pie 4B no screen installation system and networking using VNC wireless projection function
- 挖财开户安全吗?怎么有人说不靠谱。
- Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
猜你喜欢

Opencv learning notes -day4 image pixel reading and writing operations (array traversal and pointer traversal implementation, uchar vec3b data type and mat class functions mat:: at(), mat:: ptr())

Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which

Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)

Bottomsheetbehavior principle of realizing the home page effect of Gaode map

Opencv learning notes -day13 pixel value statistics calculation of maximum and minimum values, average values and standard deviations (use of minmaxloc() and meanstddev() functions)

Mmcv expanding CUDA operator beginner level chapter

Evaluation standard for audio signal quality of intelligent speakers
![[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.](/img/77/eb66ec83b34c251e732d495fbaa951.jpg)
[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.

Bind threads to run on a specific CPU logical kernel

Flink Exception -- No ExecutorFactory found to execute the application
随机推荐
mysql基础入门 day3 动力节点[老杜]课堂笔记
Esp32 (4): overview of the overall code architecture
vite项目require语法兼容问题解决require is not defined
将线程绑定在某个具体的CPU逻辑内核上运行
Axure make menu bar effect
Flutter theme (skin) changes
Advanced technology management -- how managers design and build echelons
证券开户的优惠怎样才能得到?在线开户安全?
C#访问SQL Server数据库两种方式的比较(SqlDataReader vs SqlDataAdapter)
Design specification for smart speakers v1.0
mysql基础入门 day4 动力节点[老杜]课堂笔记
Mmdet line by line deltaxywhbboxcoder
Torchvision loads the weight of RESNET except the full connection layer
How to format an UTC date to use the Z (Zulu) zone designator in php?
启动jar包报错UnsupportedClassVersionError,如何修复
Installation, use and explanation of vulnerability scanning tool OpenVAS
C # get the current timestamp
El input limit can only input numbers
Dart basic notes
What kind of experience is it to develop a "grandson" who will call himself "Grandpa"?