
如图点击VIEW,触发方法改变is_show的布尔值变量,从而选择不同的CSS样式,这个改如何写,我的写法有误,请大神指点一下。
微信小程序开发者回答:
冰***:
bindtap="isShow" 无需加括号,然后在isShow方法里,改变(取反)is_show的值,this.setData({"is_show":!this.data.is_show}) 表达式类似此代码 
不***:
多谢大神,很好的解答了我的难题 真是谢谢了
n***:系统记录
本文网址:http://www.91bianli.com/weixinxiaochengxu/27367.html