JavaScript/vue.js/error2:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第21行: | 第21行: | ||
<div class="tag"> | <div class="tag"> | ||
...</syntaxhighlight> | ...</syntaxhighlight> | ||
*: 另外,如果使用了 <code>v-html</code> | *: 另外,如果使用了 <code>v-html</code> 并且在服务端渲染了,也会抛出这个错误,可以使用 <code><client-only></client-only></code> 包裹解决 | ||
* Invalid prop: type check failed for prop "index". Expected String with value "0", got Number with value 0. | * Invalid prop: type check failed for prop "index". Expected String with value "0", got Number with value 0. | ||
*: 格式警告,需要字符串,但是传入的是 number 类型数据 | *: 格式警告,需要字符串,但是传入的是 number 类型数据 | ||