随笔分类 -  工作中的一些问题

工作中学习到的知识
摘要:mounted() { window.addEventListener('beforeunload', e => this.beforeunloadHandler(e)) }, methods: { beforeunloadHandler (e) { e = e || window.event if 阅读全文
posted @ 2019-12-26 14:09 秋风渡明月 阅读(7693) 评论(0) 推荐(1)
摘要:<el-popover ref="popover4" placement="right" width="150" trigger="click"> <el-table :data="gridData" @cell-click="copyClick"> <el-table-column width=" 阅读全文
posted @ 2019-12-24 17:08 秋风渡明月 阅读(2766) 评论(0) 推荐(0)
摘要:prevent阻止默认事件 <el-radio-group v-model="radio"> <el-radio :label="1" @click.native.prevent="radioClick(1)">备选项</el-radio> </el-radio-group> radio: '', 阅读全文
posted @ 2019-12-19 16:44 秋风渡明月 阅读(3913) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2019-12-19 15:13 秋风渡明月 阅读(1449) 评论(0) 推荐(0)
摘要:white-space: pre-wrap;word-wrap: break-word; word-break: break-all; 阅读全文
posted @ 2019-12-13 14:09 秋风渡明月 阅读(416) 评论(0) 推荐(0)
摘要:做这种效果: imgUrl判断显示那个样式 ``` <el-form-item label="上传图片" v-model="imgUrl" class="items" prop="imgUrls"> <div v-show="!imgUrl"> <el-upload action list-type 阅读全文
posted @ 2019-12-13 14:06 秋风渡明月 阅读(735) 评论(0) 推荐(0)
摘要:这是原网址:https://www.moyublog.com/codes/237.html 在tree.vue中 <template> <ul class="l_tree" v-if="model.length"> <li class="l_tree_branch" v-for="(item,ind 阅读全文
posted @ 2019-12-12 09:27 秋风渡明月 阅读(1274) 评论(0) 推荐(0)
摘要:如;Taylor Gre Swift /^([A-Za-z]+\s?)*[A-Za-z]$/ 只能输入中文 /^[\u4e00-\u9fa5]+$/ 手机号 /^1[34578]\d{9}$/ 大写字母 ^[A-Z]+$ 去除开头的0 .replace(/\b(0+)/gi,"") 金额正则(可以输 阅读全文
posted @ 2019-12-06 09:32 秋风渡明月 阅读(232) 评论(0) 推荐(0)
摘要:可以标注重要日子 自己写的,可能不是特别很好,大家多提意见!!! 地址:https://github.com/jsLWQ/calendar 阅读全文
posted @ 2019-11-25 16:34 秋风渡明月 阅读(2099) 评论(2) 推荐(0)
摘要:新建.reg的文件,复制下面代码,然后运行 D:\\软件\\VsCode\\Microsoft VS Code\\Code.exe路径改为自己的,必须是两个 \\ 才能生效 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell 阅读全文
posted @ 2019-11-19 10:33 秋风渡明月 阅读(467) 评论(0) 推荐(0)
摘要:写的太过杂乱,仅供个人查阅 <template> <div> <div class="popout"></div> <div id="lq_audits"> <div class="header"> <span>日志详情</span> <span class="header_span el-icon 阅读全文
posted @ 2019-11-12 09:21 秋风渡明月 阅读(329) 评论(0) 推荐(0)
摘要:命名使用注意事项: https://www.jb51.net/article/160227.htm 阅读全文
posted @ 2019-11-12 09:17 秋风渡明月 阅读(534) 评论(0) 推荐(0)
摘要:<!-- 循环数据表单验证 --> <div v-for="(item,index) in ruleForm.circulation" :key="index" style="width:933px"> <el-form-item label="姓名" :prop="`circulation.`+i 阅读全文
posted @ 2019-11-06 18:06 秋风渡明月 阅读(1372) 评论(0) 推荐(0)
摘要:<el-upload action v-if="IsUpload" style="display:inline" list-type="picture-card" :on-remove="handleRemove" :on-success="onSuccess" :on-change="on_cha 阅读全文
posted @ 2019-11-06 17:44 秋风渡明月 阅读(374) 评论(0) 推荐(0)
摘要:因为在vue文件中通过import加载,不知道为什么打包后会找不到js, 所以通过这种方法引入 在index.html中引入 文件目录 需要放在static目录下 <input type="text" :key="num" placeholder id="test1" v-model="date" 阅读全文
posted @ 2019-11-06 17:15 秋风渡明月 阅读(2002) 评论(0) 推荐(1)
摘要:// 银行卡每个四个字符加一个空格 addBlank(v) { if (/\S{5}/.test(v)) { return v.replace(/\s/g, "").replace(/(\d{4})(?=\d)/g, "$1 ") } }, // 手机号断开方式 phponeBlank (val) 阅读全文
posted @ 2019-11-06 15:11 秋风渡明月 阅读(277) 评论(0) 推荐(0)
摘要:Vue.prototype.$xlsx_get = function (url, data, fun, err) { axios({ method: 'get', url: url, responseType: "blob", headers: { 'Authorization': userName 阅读全文
posted @ 2019-11-05 11:19 秋风渡明月 阅读(187) 评论(0) 推荐(0)
摘要:let fileExtension = file.name.split('.').pop().toLowerCase() 阅读全文
posted @ 2019-11-01 19:39 秋风渡明月 阅读(333) 评论(0) 推荐(0)
摘要:https://segmentfault.com/a/1190000020458087 这是我写的,可以去看看,希望对你们有帮助!!! 阅读全文
posted @ 2019-10-26 15:23 秋风渡明月 阅读(1818) 评论(0) 推荐(0)