1 | < input type = 'text' placeholder = '搜索书名' focus = 'true' confirm-type = 'search' bindinput = 'input' bindconfirm = 'search' ></ input > |
2.1以上版本开始支持keyCode:
1 | < input bindinput = "input" /> |
1 | bindKeyInput(e) { |
2 | console.log(e.detail.keyCode) |
3 | } |
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!