微信小程序中,輸入框輸入內(nèi)容,需要輸入完成后點(diǎn)擊鍵盤完成事件后觸發(fā)搜索
bindconfirm=“事件名稱”文章來源地址http://www.zghlxwxcb.cn/news/detail-619302.html
<input
type="text"
value='{{inputValue}}'
bindconfirm="confirmTap"
confirm-type="搜索"
placeholder="請輸入商品名稱"
/>
confirmTap() {
console.log('按下完成觸發(fā)')
}
文章來源:http://www.zghlxwxcb.cn/news/detail-619302.html
到了這里,關(guān)于微信小程序input監(jiān)聽鍵盤完成事件、回車事件的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!