2018年7月13日

app.$mount("#app") 手动挂载

摘要: $mount()手动挂载 当Vue实例没有el属性时,则该实例尚没有挂载到某个dom中; 假如需要延迟挂载,可以在之后手动调用vm.$mount()方法来挂载。例如: new Vue({ //el: '#app', router, render: h => h(App) // render: x => x(App) // 这里的render: x => x(App)是es6的写法 // 转换过... 阅读全文

posted @ 2018-07-13 21:54 童彪 阅读(12897) 评论(0) 推荐(1) 编辑

导航