![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
关于Vue.js的bug
M-Didid
相信自己,一定能行!
展开
-
关于vue指令v-for和v-if为什么不能同时使用的回答
vue指令v-for和v-if不建议同时使用 在vue2.x中,v-for优先级是高于v-if的,如果在同一个元素中使用了v-for和v-if,那么在渲染时,v-for的每一项都要重复运行v-if,这会降低渲染的效率 解决方式 可以将v-if的功能替换为 在一个计算属性上面遍历后使用 如: computed: { activeUsers: function () { return this.users.filter(function (user) { return user.isA原创 2021-03-12 13:43:41 · 693 阅读 · 2 评论 -
Vue【bug】Cannot read property '_withTask' of undefined原因
[bug]Cannot read property ‘_withTask’ of undefined 使用Vue.js报这个错误时,其实是因为你的引用没有定义 比如: <button @click="SendWord" id="send">发送</button> 你没有在methods中写Sendword()方法,就会报这个错误。 写代码还是要细心 先写方法再调用 ...原创 2019-05-23 16:56:44 · 1494 阅读 · 0 评论