多层嵌套的bandtap的执行顺序是怎样的,可以改吗?
< view wx:for = "{{checklistItem}}" wx:key = "{{item.personAttendanceId}}" wx:for-item = "item" wx:for-index = "idx" data-idx = "{{idx}}" bindtap = "chooseItem" > < view class = "tr" > < view class = "td {{isEdit=='True'?'true':'hideTrue'}}" > < view class = 'com-selectBox' > < view class = 'com-sContent' bindtap = 'selectToggle' > </ view > </ view > </ view > </ view > |
如上图代码片段,2个for循环有bandtap,发现执行顺序是 bindtap
=
‘selectToggle’
,再执行bindtap
=
“chooseItem”
,可以更改执行顺序吗,想先执行
bindtap
=
“chooseItem”
,该如何改?