![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Carol的测试之路
当你的才华配不上你的野心的时候,还是沉下心来学习
展开
-
【vue】Prop being mutated: “placement“
控制台错误信息: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “placement”vue版本:element-ui@2.15.9 (原创 2022-07-13 17:11:28 · 2126 阅读 · 1 评论 -
【vue】问题之 [Vue warn]: Method “components“ has type “object“ in the component definition
控制台错误信息: [Vue warn]: Method “components” has type “object” in the component definition. Did you reference the function correctly?将components组件写在methods后导致,更换两者位置即可解决。原创 2022-07-13 16:17:51 · 3238 阅读 · 2 评论 -
【vue】双向绑定__v-model指令如何帮你简化代码
双向绑定------ v-model指令Vue bom和dom层的双向绑定,实现数据实时更新。而传统的单向数据绑定一般是数据影响页面,页面不影响数据。在Vue中数据改变,视图无需刷新即可实时改变,而jQuery中数据改变,视图需要用户手动刷新才会改变。也就是说,对于vue,bom 层只需一个变量,变量值更新,dom层任何地方都可以同步到这个更新后的变量值。无论是前端去更新还是后台去更新这个变量,只要使用到该变量的任何地方都会实时更新。Vue是通过 v-model 指令在表单 、 及 元素上创建双向数据原创 2022-06-18 12:57:22 · 148 阅读 · 0 评论