小程序界面开发(2)
debug
app.json debug:true 可以帮助锁定一些页面注册、更新的常见问题。
页面配置 会覆盖全局配置app.json
每一个小程序页面也可以使用同名 .json 文件来对本页面的窗口表现进行配置,页面中配置项会覆盖 app.json 的 window 中相同的配置项。
https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html
例:
yuyue界面 .json 更换标题与导航栏颜色
“navigationBarTitleText”: “预约”,
“navigationBarBackgroundColor”: “#ea9518”
下拉界面
“enablePullDownRefresh”: true,
“backgroundColor”: “#000000”
wxml
https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/
- wxml 数据绑定