随笔分类 - 工作中碰到的
摘要:场景:在方法中直接将对象数组splice,watch监听的newVal和oldVal的值一样 解决方法:在computed中 myQuestions2 (){ return JSON.parse(JSON.stringify(window.localStorage.getItem("question
阅读全文
摘要:1.定义一个New.js中间文件 2.在组件1中,引入其 New.$emit('getSome', {change: true, item: item}) 第一个参数是事件名,第二个为传递的对象 3.在组件2中,引入其 created(){ New.$on('getSome', data => {
阅读全文
摘要:1.v-popover:popover1 后边的名称不能输入,不能循环,只能一个使用 循环中使用触发html,用 slot="reference" 2. :popper-options="{ boundariesElement: 'body', removeOnDestroy: true }" 改变
阅读全文

浙公网安备 33010602011771号