switch 的checked属性不能用设置为false吗?
< switch checked = "false" bindchange = "switchChange" > |
这样好像还是选中的状态
这样的话就很不方便用条件判断,比如设想中是这样用一行就可以完成
< switch checked = "{{switchChecked}}" bindchange = "switchChange" > |
但是实际必须要好多行
< block wx:if = "{{switchChecked}}" > < switch checked bindchange = "switchChange" > </ block > < block wx:else> < switch bindchange = "switchChange" > </ block > |
还是说是我的写法有问题,请指教