摘要: 递归实现把数组对象最外层某个属性的值赋值给子集 阅读全文
posted @ 2023-08-16 13:19 uniqueU 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 安装vue-svg-pan-zoom 组件 方式1、执行 npm install --save vue-svg-pan-zoom 方式2、执行 cnpm install vue-svg-pan-zoom 2.页面代码 <template> <div> <SvgPanZoom class="" sty 阅读全文
posted @ 2022-07-08 14:37 uniqueU 阅读(843) 评论(1) 推荐(0) 编辑
摘要: 1、安装: npm install -S file-saver xlsx npm install -D script-loader npm install -D xlsx-style (自定义样式) 2、新建excel文件夹 3、excel文件夹下新建Blob.js和Export2Excel.js文 阅读全文
posted @ 2022-04-27 11:12 uniqueU 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 运行vue项目时,报如下错误: * ./cptable in ./node_modules/xlsx-style/dist/cpexcel.js 出现上述原因是因为Excel文件导出时所用的xlsx-style库错误所导致的, 1、这是需要改安装依赖的文件内容,根据提示找到该js文件在807行做修改 阅读全文
posted @ 2022-04-27 10:57 uniqueU 阅读(2955) 评论(0) 推荐(0) 编辑
摘要: //回车键登录 keyDown() { var _self = this; document.onkeydown = function (e) { console.log(e); var key = window.event.keyCode; if (key == 13 || key == 100) 阅读全文
posted @ 2022-04-25 09:31 uniqueU 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 一、bus的使用 作用:进行组件通信 1.utils文件夹下新建bus.js import Vue from 'vue' const bus = new Vue() export default bus 2.传数据的页面 引入 bus.js import Bus from "../../路径" Bu 阅读全文
posted @ 2022-04-12 16:44 uniqueU 阅读(352) 评论(0) 推荐(0) 编辑
摘要: //为搜索引擎定义关键词 <meta name="keywords" content="王者荣耀,和平精英,穿越火线,斗地主"> //为网页定义描述内容 <meta name="description" content="娱乐 游戏 & 多人 射击"> //定义作者 <meta name="auth 阅读全文
posted @ 2021-08-04 10:59 uniqueU 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1、新增用于绘画的canvas元素; 2、用于媒介回放的video和audio; 3、更好的语义化标签:header、footer、nav、article、section; 4、对本地离线储存更好的支持; 5、新的表单控件:calendar、data、time、url、search、email; 阅读全文
posted @ 2021-08-02 14:06 uniqueU 阅读(21) 评论(0) 推荐(0) 编辑