<!DOCTYPE html>
vue
hello app
郭洁
韩天姿
<br> const gj={template:'<div>郭杰</div>'}<br> const htz={template:'<div>韩天姿</div>'}<br> const rout=[{path:'/gj',component:gj},<br> {path:'/htz',component:htz}];</p> <pre><code> const routerEmp=new VueRouter({ rout }) const vm=new Vue({ routerEmp }).$mount('#temp') </script> </body> </code></pre> <p></html></p>