摘要: /** * kevin 2021.1.4 * 将rgb表示方式转换为hex表示方式 * @param {string} rgbColor 传过来的hex格式的颜色 * @returns {string | null} */ export function colorHex(rgbColor) { v 阅读全文
posted @ 2021-04-25 14:07 吃不棒的胖胖糖 阅读(231) 评论(0) 推荐(0)
摘要: /** * kevin 2021.1.4 * 根据色值深浅返回相对应的深浅字体颜色 * @param {string} hex 传过来的hex格式的颜色 * @returns {string | null} */ export function fontColorConvert(hex) { //  阅读全文
posted @ 2021-04-25 14:05 吃不棒的胖胖糖 阅读(104) 评论(0) 推荐(0)
摘要: /** * kevin 2021/1/4 * @description el-upload + accept限制上传的文件格式 * @param e 校验的类型 * @returns {string | null} */ export function acceptFile(e) { const a 阅读全文
posted @ 2021-04-25 13:10 吃不棒的胖胖糖 阅读(2641) 评论(0) 推荐(0)
摘要: /** * 生成随机uuid */ export function uuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random() * 16 | 0 阅读全文
posted @ 2021-04-25 11:49 吃不棒的胖胖糖 阅读(100) 评论(0) 推荐(0)
摘要: /** * 文件流转换 主要代码块,可自定义下载文件名称 * @param {} data */ export function download(data, titName) { if (!data) { return } const content = data const blob = new 阅读全文
posted @ 2021-04-25 11:47 吃不棒的胖胖糖 阅读(151) 评论(0) 推荐(0)
摘要: 1.从git上复制http路径 2.在vs code的工作区新建文件夹 3.选择添加远程储存库 4.输入复制的git路径然后命名远程储存库名称 5.选择从所有远程储存库中拉取分支 6.选择分支,切换当前的分支 6.1.点击左下角进入分支选择 6.2点击签出到 7.点击拉取,获取git代码 8.当更改 阅读全文
posted @ 2021-03-08 10:30 吃不棒的胖胖糖 阅读(322) 评论(0) 推荐(0)
摘要: 1.通过router-link 进行跳转 <router-link to="/china-quotation/business-function/quotation-request"> --> <!-- KA quotation-request --> <el-button plain @click 阅读全文
posted @ 2021-02-07 17:56 吃不棒的胖胖糖 阅读(2323) 评论(0) 推荐(0)
摘要: Promise是一个构造函数,它有resolve,reject,race等静态方法;它的原型(prototype)上有then,catch方法,因此只要作为Promise的实例,都可以共享并调用Promise.prototype上面的方法(then,catch) Promise的使用语法: new  阅读全文
posted @ 2021-02-05 11:05 吃不棒的胖胖糖 阅读(289) 评论(0) 推荐(0)
摘要: input输入框有自动保存记忆功能,点击的时候之前输入的内容会在下拉框自动提示 autocomplete="off",这是H5的一个属性。 <input type="text" name="xxx" class="xxx" autocomplete="off"/> 火狐这个属性无效,换成:disab 阅读全文
posted @ 2021-02-04 10:53 吃不棒的胖胖糖 阅读(282) 评论(0) 推荐(0)
摘要: 在VUE中路由遇到Error: Avoided redundant navigation to current location:报错显示是路由重复, 虽然对项目无影响,但是看到有红的还是不舒服。 于是查了一下发现可以这样解决 在你引入VueRouter的时候再加上一句话: const origin 阅读全文
posted @ 2021-01-25 16:25 吃不棒的胖胖糖 阅读(133) 评论(0) 推荐(0)