html标签,svg标签等不能作为组件名称,否则会报错,例如switch:
Do not use built-in or reserved HTML elements as component id: Switch
文章中介绍了vue对组件名的处理以及哪些名字不能用作组件名:
文章地址:
vue中为什么不能用switch做组件名称
vue中为什么不能用switch做组件名称
猜你喜欢
转载自blog.csdn.net/weixin_40863414/article/details/89356149
今日推荐
周排行