vue 使用v-if时遇到的问题

在vue中使用v-if时遇到的问题记录html v-if和v-else之间不能加入其它的元素,不然会报错,错误为:v-else used on element <input> without corresponding v-if,错误示例以下:vue <input type="text" v-if="id===0"> <span>提示信息</span> <p v-else>显示p</p>因此,v-
相关文章
相关标签/搜索