![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VUE
爱早睡的老林
这个作者很懒,什么都没留下…
展开
-
Vue中Unknown custom element: <page> - did you register the component correctly? 解决方法
Unknown custom element: <page> - did you register the component correctly? For recursive components, make sure to provide the "name" option.刚开始使用VUE,一直提示这个,后来才发现是注册组件时注册反了;先新建VUE实例再注册组件是问题根源,调...原创 2018-12-10 08:45:40 · 110133 阅读 · 7 评论 -
VUE查漏补缺(一): $listener跟$attrs的使用
vue中提供了很多很好用的语法糖给我们使用,其中获取原生事件.native就是一种很好的方式:但是,正如VUE官方文档所说的:不过在你尝试监听一个类似<input>的非常特定的元素时,这并不是个好主意。比如上述<base-input>组件可能做了如下重构,所以根元素实际上是一个<label>元素<label> {{ la...原创 2019-03-15 16:29:08 · 13759 阅读 · 0 评论