小程序开发
一、WXML四大特性1.数据绑定- 列表项目
2.列表渲染
- 列表项目
3.条件渲染
- wxml中:wx:if wx:elif wx:else
- js中:condition:Math.floor(Math.random()*3+1)1~3的随机数
Math.random()生成一个0~1的浮点数
Math.floor9()对浮点数下取整4.模板及引用
本文共 180 字,大约阅读时间需要 1 分钟。
小程序开发
一、WXML四大特性1.数据绑定2.列表渲染
3.条件渲染
Math.random()生成一个0~1的浮点数
Math.floor9()对浮点数下取整4.模板及引用
转载地址:http://zdvdm.baihongyu.com/