WX applet - 1

View layer: WXML, WXSS

Logic layer: JS

Response data binding, event binding

Checking this is actually solving cross-domain problems (local development stage only).

To go online, you need to add a legal domain name.

 

app.json

File creation and deletion, keep consistent, otherwise an error will be reported

window is the global configuration

tabBar is the bottom navigation: there are two charts, only local icons can be used

 

 

 

 The Page method is responsible for registering the current page

Components:

<!-- image 类似h5中的 img -->
<!-- navigator 类似h5中的 a -->
<!-- view 类似h5中的div,p,ul,ol,li -->
<!-- text 类似h5中的span,b,strong,i -->
<!-- form,input,button 这些是表单组件 -->
<!-- map 地图组件 -->
<!-- swiper 轮播图组件 -->
<!-- rich-text 富文本组件 -->

rpx adaptive pixel unit: the entire page width of the applet is 750rpx

Swiper

 send request

List: for loop, item, index

{ {}} syntax: use double bracket syntax, only key is an exception

 Single-line, multi-line ellipsis styles

 

 Pull down to refresh (same as pull up to refresh)

 

 

Guess you like

Origin blog.csdn.net/qq_60839348/article/details/130559561