vue2.0自定义组件名称为myComponent无效

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/com_it/article/details/88843877

1、Vue自定义组件格式如下:

2、下面是正常效果的

3、当把组件名改为myComponent时,就没反应了

4、初步分析

myComponent可能是Vue的关键字,然后去官网查资料,然而没有找到答案,希望知道的大佬告知一下,感谢。

猜你喜欢

转载自blog.csdn.net/com_it/article/details/88843877