文章来源:https://blog.csdn.net/longfeng1234/article/details/94633176
html部分
<input bindtap="inputTap" bindinput="doInput" bindfocus="inputFocus" bindblur="inputBlur"></input>
<view bindtap="viewTap">view tap</view>
js部分
//index.js部分代码
inputTap(e){
console.log("input tap");
},
doInput(e){
console.log("input sth");
},
inputFocus(e){
console.log("input focus");
},
inputBlur(e){
console.log("input blur");
},
viewTap(e){
console.log("view tap");
}
网友评论