input组件在android和ios中自动触发bindInput方法的问题?
< input value = "{{value}}" bindtap = "bindInputTap" bindinput = "bindInput" bindfocus = "bindfocus" bindblur = "bindblur" confirm-type = "search" bindconfirm = "bindconfirm" ></ input > < view bindtap = "viewTap" >view tap</ view > |
bindInputTap(e) { console.log( "bindInputTap" ); }, bindInput(e) { console.log( "bindInput" ); }, bindfocus(e) { console.log( "bindfocus" ); }, bindblur(e) { console.log( "bindblur" ); }, bindconfirm(e){ console.log( "bindconfirm" ) }, viewTap(e) { this .setData({ value: "value" }) console.log( "viewTap" ); } |
在android手机中,点击input组件,然后点击view Tap,事件触发如下图:(微信版本7.0.8)
ios按上述操作,事件触发如下图:(微信版本7.0.8)
1 回复
把你的代码整理成了代码片段https://developers.weixin.qq.com/s/SYy8V4m27FdV在android手机中,点击input组件,然后点击view Tap,结果是
所以提供下出现问题的机型、系统版本、微信版本、还有复现视频吧