input框的bindblur事件和bindfocus事件真机测试无效
input框的bindblur事件和bindfocus事件真机测试无效,在pc端有效,这是什么问题
8 回复
机型:vivoX9s
微信版本:6.6.1
< input type = 'text' placeholder = "{{nameplaceholder}}" placeholder-style = 'font-size: 14px' value = '{{userName}}' class = 'card-info-xm' bindfocus = 'nameFocus' bindblur = 'nameBlur' bindinput = "changeName" /> |
//聚焦姓名输入框 nameFocus: function (e) { // console.log("聚焦e=",e); this .setData({ showNameDel: "block" , nameplaceholder: '' }); }, //失焦姓名输入框 nameBlur: function (e) { // console.log("失焦e=", e); this .setData({ showNameDel: "none" , nameplaceholder: '请输入你的姓名' }); }, |