Custom components to add method @click

Custom components directly added @click regardless of the method is used to add native

<p><user-defined @click.native="add()"></user-defined></p>//加.native后add()方法才有用

 

Guess you like

Origin www.cnblogs.com/lipu12281/p/11844336.html