[Vue warn]: Cannot find element: #main
使用vue框架的时候,如果页面提示如下错误,则说明new Vue的时候没有传入 el 的值:
[Vue warn]: Cannot find element: #main
我们传入el 既可以,如:
var main = new Vue({el: '#main',data: {currentActivity: 'home'} }):
转载于:https://www.cnblogs.com/ayseeing/p/5086670.html
[Vue warn]: Cannot find element: #main相关推荐
- [Vue warn]: Unknown custom element: <Top> - did you register the component correctly?
[Vue warn]: Unknown custom element: - did you register the component correctly? 错误如下: 出现错误的原因有以下几种: ...
- [Vue warn]: Unknown custom element: <helptext> - did you register the component correctly? For recu
报错信息: vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For ...
- 解决[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recursive
[Vue warn]: Unknown custom element: <ag> - did you register the component correctly? For recur ...
- [Vue warn]: Unknown custom element: vhead - did you register the component correctly? For recursiv
[Vue warn]: Unknown custom element: <vhead> - did you register the component correctly? For re ...
- vue.js报错 vue.js:597 [Vue warn]: Cannot find element: #app
刚开始使用vue的时候发现vue报vue.js:597 [Vue warn]: Cannot find element: #app的错误,初始以为是写的代码有错误导致,于是认真的对照了几遍发现代码和官 ...
- vue-2.5.16.js:597 [Vue warn]: Unknown custom element: ocean - did you register the component corre
vue-2.5.16.js:597 [Vue warn]: Unknown custom element: - did you register the component correctly? Fo ...
- Vue报错-[Vue warn]: Unknown custom element: <van-action-sheet> - did you register the component correc
项目场景: 今天在使用到vant组件的时候引入报错. [Vue warn]: Unknown custom element: <van-action-sheet> - did you re ...
- 【 已解决】[Vue warn]:Unknown custom element: <a-calendar> - did you register the component correctly
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive compon ...
- [Vue warn]: Unknown custom element: usertree - did you register the component correctly? For recur
[Vue warn]: Unknown custom element: <usertree> - did you register the component correctly? For ...
最新文章
- linux常用命令简介- 用户管理及文件属性
- Python之并发编程
- 了解Windows内核内存池
- S6 文件备份与压缩命令
- Linux上用户之间对话
- Opencv EmguCv 基本识别步骤
- 反卷积(Deconvolution)、上采样(UNSampling)与上池化(UnPooling)加入自己的思考(pytorch函数)(三)
- sprint 3 总结
- eclipse连接数据库
- 基于android鲜花销售app,基于Android的鲜花APP设计任务书
- Intellij IDEA 代码格式化配置和快捷键
- 如何彻底关闭UAC----之注册表篇
- 吴伯凡-认知方法论-如何消除认知阑尾
- Intent基本概念
- GraphGallery,一个基于TensorFlow 2.x与 PyTorch 的GNN benchmark 框架
- 举例解释大数定律、中心极限定理及其在机器学习中的应用
- sql注入中的联合注入
- 【计算机操作系统】-进程切换什么时候会发生呢?
- Windows电脑上微信双开(多开)的办法
- 各种计算机编程语言之父