我老师代码一样的,为什么你的代码可以挂载到html或者body上,我的不行啊,只能在index.html上写个div,挂载到这个div才可以
来源:15-2 组件拆分(中)

慕斯卡1073330
2017-07-03
vue.common.js?e881:509 [Vue warn]: Do not mount Vue to <html> or <body> - mount to normal elements instead.
写回答
1回答
-
ustbhuangyi
2017-07-03
我也是挂载在 id 为 app 的 div 上的
00
相似问题