1、Vue.set()是将set函数绑定在Vue构造函数上,this.$set()是将set函数绑定在Vue原型上。

2、excel导出源代码

const blob = new Blob([response.data], {type: "application/vnd.ms-excel"});
                const fileName = '数据统计分析表.xls';
                const elink = document.createElement('a');
                elink.download = fileName;
                elink.style.display = 'none';
                elink.href = URL.createObjectURL(blob);
                document.body.appendChild(elink);
                elink.click();
                URL.revokeObjectURL(elink.href); // 释放URL 对象
                document.body.removeChild(elink);
3、空值合并:null、undefined、‘’  =》 (value??'') !==  ''

 

posted on 2021-12-30 18:20  热心市民宗某§  阅读(25)  评论(2)    收藏  举报