06 2022 档案
摘要:.el-textarea__inner { resize: none; }
阅读全文
摘要://过滤日期 import Vue from 'vue' import moment from "moment" Vue.filter('dateFilter', (data) => { // 日期处理函数 - moment if (data !== '' && data !== null && d
阅读全文
摘要:1.直接使用a标签(不知道下载时的文件名从哪里改) var url = this.URL + '//data/print/' + this.id //调用后台的url,可以传参数 const a = document.createElement('a') //创建a标签 a.setAttribute
阅读全文
摘要:<template> <div> <table> <thead> <th>ID</th> <th>所属部门</th> <th>姓名</th> <th>年龄</th> </thead> <tbody> <template v-for="(item,num) in tableData"> <tr :ke
阅读全文
摘要:1.安装依赖yarn add vue-print-nb(npm install vue-print-nb --save) 2.页面引入 import Print from 'vue-print-nb' Vue.use(Print); //注册 import Vue from 'vue' 3.页面内容
阅读全文
摘要:前言 当我第一次知道这种东西,我也惊呆了,居然还有这种操作,实在强大到没朋友,从此爱上调试,按时下班 无数次通过调试解决问题的经验告诉我,调试绝对是开发者最应该掌握的重要技能之一。调试能帮助我们定位问题解决问题,每解决一个问题,经验值就往上涨。后面就可以考经验解决很多问题,并且能正确避开当年踩过的雷
阅读全文
摘要:<template v-for="(item,index) in age"> <td :key="'男'+index" colspan="2">男</td> <td :key="'女'+index" colspan="2">女</td> </template>
阅读全文
摘要:var url = 'http://127.0.0.1:8080//aaa/bbb' const a = document.createElement('a') //创建a标签 a.setAttribute('target','top') //href链接 a.setAttribute('href'
阅读全文
摘要:这种方法不常用,项目中有个地方共享数据了,起初没用vuex做,后来有个地方不好解决,这两个组件没有什么关系 1.首先同一个vue实例来调用两个方法。所以可以建立一个中转站。 建立 util.js 中转站文件(任/assets/js/util.js) import Vue from 'vue' exp
阅读全文