![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小程序
DF11G_0001
We choose to go to the moon in this decade and do the other things, not because they are easy, but because they are hard.
展开
-
小程序基础语法
数据绑定在.js的data里,用{{变量}}进行绑定 普通标签:<view> 图片标签:<image src=" "> 循环:wx:for 判断:wx:if 是否渲染可以使用wx:if和hidden。 区别:hidden不会将wxml内的元素删去,wx:if会。所以需要频繁切换的场景适合hidden,一次性渲染的场景适合wx:if。 添加事件:bind 事件的冒泡:当子元素发生事件时,事件会逐层向父元素进行传播。 阻止事件冒泡!使用catch代替bind进行事件绑定原创 2020-11-07 22:09:20 · 428 阅读 · 1 评论 -
小程序基本架构组成
原创 2020-11-07 20:57:51 · 524 阅读 · 0 评论