有兩個(gè)問題:
第一:
<view class="weui-cells input-text">
<input class="weui-input" name="uPassword" password="{{passwordType}}" placeholder="請(qǐng)輸入密碼" placeholder-class="holder-style" />
<image src="../../images/icon/xianshi.png" class="password-icon" bind:tap="seeTap" wx:if="{{showPass}}" />
<image src="../../images/icon/yincang.png" class="password-icon" bind:tap="seeTap" wx:else/>
</view>
bind:tap="seeTap"
里的seeTap
大小寫不一致,所以只觸發(fā)了一個(gè)
第二:
固定定位的元素加了點(diǎn)擊事件,不生效
原因是層級(jí)不夠,設(shè)置css的z-index就OK啦文章來源:http://www.zghlxwxcb.cn/news/detail-786355.html
.arrow-left {
width: 20rpx;
height: 20rpx;
position: fixed;
left: 10rpx;
top: 100rpx;
z-index: 999;
}
參考:
小程序bindtap點(diǎn)擊無效,沒有報(bào)錯(cuò)
文章來源地址http://www.zghlxwxcb.cn/news/detail-786355.html
到了這里,關(guān)于小程序bindtap綁定事件無效,點(diǎn)擊未觸發(fā),報(bào)錯(cuò):does not have a method “seetap“ to handle event “tap“.的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!