场景
@input事件想要传递一个参数到方法中 但是同时还要保留原来返回的event
1 | <input class="uni-input" @input="onKeyInput()" /> |
解决方法:$event
1 | @input="onKeyInput($event,123)" |
@input事件想要传递一个参数到方法中 但是同时还要保留原来返回的event
1 | <input class="uni-input" @input="onKeyInput()" /> |
解决方法:$event
1 | @input="onKeyInput($event,123)" |