- did you register the component correctly? For recursive components, make sure to provid

古城微笑少年丶 2022-05-22 12:26 368阅读 0赞

这个错误是在学习Vue的时候报的。

原因很简单,就是你使用Vue.component的时候,自定义的标签名不符合规则

标签名修改为小写,即可。

报错:

  1. Vue.component("greeTing",{ // 只能是小写的
  2. template:"<p>彭珂</p>"
  3. })

改为:

  1. Vue.component("greeting",{ // 只能是小写的
  2. template:"<p>彭珂</p>"
  3. })

-————end—————-

—————————————————————————-<<<

学习资料下载

—————————————————————————-<<<

发表评论

表情:
评论列表 (有 0 条评论,368人围观)

还没有评论,来说两句吧...

相关阅读