vuejs how to use mixin in single file component - vuejs
phpcn_u15822017-05-16 13:42:10
0
2
607
How to use mixing in a single Vue file? I have now written a change arrow method that I want to use in multiple files. I want to use it in other components through mixing. But I don’t know how to achieve it. Is there any other method?
Hybrid implementation 1.js
Using Mix 2.js
Introduce index.js under the mixins folder into the entry file
In this way, the methods in the index can be called in every page