2023年11月6日
摘要: vue中引入插件 VueOffice,npm下载,以下插件需要单独下载 VueOfficeDocx VueOfficeExcel <template> <div style="height: 700px; overflow: auto;"><vue-office-docx style="min-he 阅读全文
posted @ 2023-11-06 11:31 衔玉凌枝 阅读(275) 评论(0) 推荐(0)
  2023年9月4日
摘要: debounce(fn, delay=500) { debounce(fn, delay=500) { let timer; return function() { const that = this; const args = arguments; if(timer) { clearTimeout 阅读全文
posted @ 2023-09-04 09:24 衔玉凌枝 阅读(13) 评论(0) 推荐(0)
  2021年8月12日
摘要: config里面的index.js dev => proxyTable '/abc':{ target: 'http://localhost:8083', changeOrigin: true, //可由后端通过request.getHeader('Host')获取请求地址 pathRewrite: 阅读全文
posted @ 2021-08-12 16:22 衔玉凌枝 阅读(31) 评论(0) 推荐(0)
  2021年8月2日
摘要: Vue生命周期 => 初始化实例 => beforeCreated(此步不能调用数据及方法) => 实例创建完成(observer数据观测 属性和方法的运算 watch/event事件回调) => created => 检测页面内的el template并编译渲染 => beforeMount => 阅读全文
posted @ 2021-08-02 15:36 衔玉凌枝 阅读(342) 评论(0) 推荐(0)
  2021年4月9日
摘要: JS数组迭代方法: every() => 给定函数遍历数组,如果每一项都返回true则为true some() => 给定函数遍历数组,只要有一项返回true则返回true <form class="question-form layui-form"> <div class="form-box">< 阅读全文
posted @ 2021-04-09 17:25 衔玉凌枝 阅读(423) 评论(0) 推荐(0)
  2021年2月20日
摘要: 公众号和小程序分享都是通过右上角进行的,只要在页面内对其进行设置就能设置分享内容。 公众号前端获取不了微信信息授权,需要后端进行操作。 页面不是component,在其他页面内进行引用打包后会出错,建议写个公共component引用。 在app.js里面定义的变量不能在视图区直接进行渲染,只能在ge 阅读全文
posted @ 2021-02-20 18:01 衔玉凌枝 阅读(66) 评论(0) 推荐(0)