首页 > 编程语言 >微信小程序JS

微信小程序JS

时间:2022-09-24 16:26:14浏览次数:81  
标签:1111 微信 程序 JS 运算符 class

微信小程序之操作三元运算符class  

 <view class="chejian wx:if='{{item.is_check == 1 ? 'hover' : ''}}' "> 1111</view>

 

<van-cell-group>
<van-cell title="昵称" value="{{userInfo.nickName}}" />
<van-cell title="性别" value="{{userInfo.gender==1?'男':'女'}}" />
</van-cell-group>

     禁用bindtap

          <image class='scan' data-index="{{index}}" bindtap='scanCode' src='../images/scanCode.png' mode='widthFix'            class="scan wx:if='{{item.flag == true ? 'eventnone' : ''}}'"></image>

标签:1111,微信,程序,JS,运算符,class
From: https://www.cnblogs.com/ZJ0065/p/16725830.html

相关文章