This time I will bring you a summary of vue construction and routing usage. What are theprecautionsfor vue construction and routing usage? The following is a practical case, let’s take a look.
1. Three mounting methods for components
Automatic mounting
var app3 = new Vue({ el: '#app-3', data: { seen: true } })
Manual mounting
// 可以实现延迟按需挂载{{name}}