随笔分类 - web
摘要:input[type=radio] { appearance: none; -moz-appearance: none; -ms-progress-appearance: none; -webkit-appearance: none; display: inline-block; margin-le
阅读全文
摘要:寄生组合式继承 // 实现继承。调用一次父类的构造函数 function inheritPrototype (subType, superType) { // 根据父类原型创建一个新的原型对象 /* // Object.create传递一个参数是相当于下面代码: function createObj
阅读全文
摘要:ie下使用canvas截图,执行toBlob报错 根据canvas官网摘取: https://www.canvasapi.cn/HTMLCanvasElement/toBlob#&compatibility // toBlob兼容ie if (!HTMLCanvasElement.prototype
阅读全文
摘要:单行溢出 核心代码: /* 宽度width需要进行限定 */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 示例: <!DOCTYPE html> <html> <head> <style type="text/css
阅读全文
摘要:/** 请求 * @Author: xuhong * @Date: 2020/6/19 * @DESC: //TODO */ /** * 发送请求,处理请求失败 * * request(url, method, data, callback) * request(url, method, callb
阅读全文
摘要:/** Axios请求 * @Author: xuhong * @Date: 2020/6/19 * @DESC: //TODO */ import axios from 'axios'; import baseUrl from "./config"; import {Message} from '
阅读全文
摘要:vue项目中,经常需要引入文件,正常情况下都是使用相对路径进行引用,如下图 这样的引用方式不便于路径查看,且引入是容易写错 可以使用自定义路径解决这一问题: 一、打开项目下webpage.config.js文件,找到resolve代码块,编写成以下格式 二、在需要引入文件的地方直接编写即可 此处引用
阅读全文

浙公网安备 33010602011771号