最近在學(xué)習(xí)微信小程序相關(guān)課程,在學(xué)到文本事件綁定的時候,遇到了如下以下問題
?相關(guān)代碼:
wxml
<input bindinput="inputHandler"></input>
js
inputHandler(e){
console.log(e.detail.value)
},
廢了挺久時間都沒找到哪里發(fā)生了錯誤,看了相關(guān)語法也沒有錯誤??戳似渌┲鞯奈恼轮蟛虐l(fā)現(xiàn),原來只是沒有編譯而已。。。。。
只需再編譯一次就可以了。
文章來源:http://www.zghlxwxcb.cn/news/detail-501801.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-501801.html
到了這里,關(guān)于微信小程序報錯:Do not have inputHandler handler in component: pages/list/list. Please make sure that inputH的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!