摘要: 一、 安装gitlab ubuntu 下载:wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_12.1.4-ce.0_amd64.deb/d 阅读全文
posted @ 2022-11-04 10:23 walxl 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 因为用的kbone框架所以是vue写法 一、 wxload获取query参数 query里面的q参数就是经过编码后的路径 例:https%3A%2F%2F%E5%9F%9F%E5%90%8D%2FpathName%3Fpage%3D%E5%8F%82%E6%95%B01%26id%3D%E5%8F% 阅读全文
posted @ 2022-09-01 16:27 walxl 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 使用Buffer先对字符串进行解码 function decodeBase64(base64: string) { // base64字符串解码 const buffer = Buffer.from(base64, 'base64'); return buffer.toString(); } 转为对 阅读全文
posted @ 2022-08-16 17:45 walxl 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: 1、style-resources-loader 自动混入配置的样式文件 使用: vue.config.js pluginOptions: { 'style-resources-loader': { preProcessor: 'less', patterns: [path.resolve(__di 阅读全文
posted @ 2021-08-04 10:55 walxl 阅读(48) 评论(0) 推荐(0) 编辑
摘要: export function chooseWXPay(params: wx.ChooseWXPayConfig) { return new Promise<{ status: 'success' | 'error' | 'cancel'; result?: string; message?: st 阅读全文
posted @ 2021-06-25 18:12 walxl 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 在安卓系统里new Date()可以解析 Y-m-d H:i:s 或者 Y-m-d格式而在ios系统中解析格式为Y/m/d H:i:s但是有时候后端返回的时间为 例:2020/01/01 20:00:00.0000 00ios会解析不了点后面的内容就导致这个Date失效 解决: 粗暴解决:直接截取后 阅读全文
posted @ 2021-02-26 10:22 walxl 阅读(86) 评论(0) 推荐(0) 编辑
摘要: function addition(num1, num2){ //将传入的数字格式化防止出错 if(typeof num1 != 'number'){ num1 = parseFloat(num1) | 0; } if(typeof num2 != 'number'){ num2 = parseFl 阅读全文
posted @ 2021-02-25 18:24 walxl 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 核心: document.execCommand("Copy"); //点击某个摁扭执行事件 copy(data){ let url = 要复制的值; //新建一个文本框 let oInput = document.createElement('input'); //赋值给文本框 oInput.va 阅读全文
posted @ 2021-02-16 16:21 walxl 阅读(316) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios' let $axios = axios.create({ baseURL: '/api', //前缀地址 timeout: 3000 //超时时间 }); // 添加请求拦截器 $axios.interceptors.request.use(func 阅读全文
posted @ 2020-11-01 13:55 walxl 阅读(998) 评论(0) 推荐(0) 编辑
摘要: class Request { constructor(baseURL){ // 基准地址! this.baseURL = baseURL } /** * 封装的请求方法! * @param {string} url 请求地址 * @param {string} type 请求类型,默认get * 阅读全文
posted @ 2020-11-01 13:50 walxl 阅读(447) 评论(0) 推荐(0) 编辑