5***@qq.com
5***@qq.com
  • 发布:2020-12-17 18:17
  • 更新:2020-12-21 12:18
  • 阅读:422

按钮的diaable属性怎没没用了

分类:uni-app

<button @click="take_2" type="primary" disabled="false">{{lin}}</button>
<button @touchstart="take_2" type="primary" disabled="false">{{lin}}</button>

@click中disable无论true还是false都是不能用
@touchstart中无论true还是false都可以用
是什么情况

2020-12-17 18:17 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

disabled前需要加冒号

:disabled="true"  

该问题目前已经被锁定, 无法添加新回复