正文Vue报错 type check failed for prop “xxx“. Expected String with value “xx“,got Number with value ‘xx‘IP云V管理员/2022-11-30/2 阅读 11/30提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 vue报错 [Vue warn]: Invalid prop: type check failed for prop "name". Expected String with value "4", got Number with value 4. 当出现这个错误原因在于写法上漏了数字和字符串的类型关系 引用了我们定义的数组和变量或者函数 这个问题就是我们点击:name默认的类型是字符串类型,而我们自己定义的是数字类型所以我们需要改一下就好 希望上述能帮到你