⼩ binding events program, implemented by bind keyword.
As bindtap bindinput bindchange etc., different components ⽀ hold different events
Can not take binding event parameters can not be bracketed
Event pass through the label value Custom attributes shutter mode and value
.wxml
<view bindtap="1" bindinput="handleInput" ></view>
.wxs
Page ( {
// event bind
the handleInput: function (E) {
// Item {:. 1 }
the console.log (e.currentTarget.dataset) // . 1
// value input box of console.log (e.detail. value);
}
})