07 2021 档案
摘要:安装 viewerjs npm install viewerjs --save 引入 main.js import Viewer from 'viewerjs' import 'viewerjs/dist/viewer.css' Vue.use(Viewer) 使用 showImage(url) {
阅读全文
摘要:<! > <template> <ul> <li v-for="item in calendarArray" :key="item.time" > <div :style="'color:' + (item.isCurrentMonth ? '#000' : '#bbb')" > {{ item.d
阅读全文
摘要:引入文件 jquery.js jquery.nicescroll.js 地址: https://nicescroll.areaaperta.com/wp-content/plugins/jnicescroll/js/jquery.nicescroll.min.js 使用: $("div").nice
阅读全文
摘要:安装依赖 npm install -S file-saver npm install -S xlsx npm install -D script-loader 新建Blob.js和Export2Excel.js Export2Excel.js /* eslint-disable */ require
阅读全文
摘要:1、全局安装 npm i -g webpack 2、新建空文件夹 初始化生成package.json npm init -y 3、安装webpack-cli npm install webpack webpack-cli --save-dev 4、创建目录和文件 初始化生成的 package.jso
阅读全文
摘要://main.js Vue.directive('tableScroll', { bind(el, binding, vnode, oldVnode) { let scrollTop = 0; let dom = el.querySelector(".el-table__body-wrapper")
阅读全文
摘要:中国标准时间转换为特定格式时间(以2020-006-06为例) initDate(date){ return date.getFullYear() + "-" + (date.getMonth()> 9 ? (date.getMonth() + 1) : "0" + (date.getMonth()
阅读全文
摘要:Button 目录文件 首先创建button文件夹,新建index.vue文件 index.vue <template> <div :class="type == 'Default'?'btn default':type == 'primary'?'btn primary':type == 'dan
阅读全文
摘要:方案一:(实测无效,仍会报跨域问题,不推荐) <!-- 添加crossorigin=“anonymous”属性 同时 后端配置该图片地址的跨域--> <img crossorigin="anonymous" :src="imgSrc ? imgSrc : ''"/> 结论: | 后端是否配置跨域 |
阅读全文
摘要:<div class="imgShow"> <img style="border:none" :src="newImage" alt=""> </div> <video v-show="imgVideoTab" muted class="video-class" id="video_id" auto
阅读全文
摘要:安装插件 npm install html2canvas --save npm install jspdf --save exportPDF.js import html2Canvas from 'html2canvas'; import JsPDF from 'jspdf'; export def
阅读全文
摘要:<div style="width: 100%;height:2000px;"> <button style="margin-top: 200px;" onclick="show()">sssssss</button> </div> <div id="model" style="position:
阅读全文

浙公网安备 33010602011771号