javascript - How to use Vue to write a component and only use it on some traditional html pages?
为情所困2017-06-12 09:28:18
0
2
713
1 Existing component written using vue example 2 If registered globally in app.js, any html page can be used normally 3 But if this component is only used on one page, how to Register this component locally on this page?
Just instantiate vue in your traditional page, introduce your component, and register it in the currently instantiated vue
You need to read the Vue documentation 3~4 times and register locally