自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 问答 (1)
  • 收藏
  • 关注

原创 在gulp打包文件时候 给静态资源 css js html文件内的引用增加时间戳

// 时间戳demolet through = require(‘through2’);let getDate = moment().format(‘YYYYMMDDHHmmss’);let ASSET_REG = {‘CSS’: /([’"])([^\s’"].?)\1/ig, // 修改在css中的探测内容‘dynamic-loading’: /(function change(options) {return through.obj(function (file, enc, cb) {o

2020-12-22 17:55:05 521

原创 Vue项目中Object.defineProperty 劫持数据 手写

let uid = 0 // 用于储存订阅者并发布消息class Dep {constructor() {this.id = uid++ // 设置id 用于区分新的watcher和只改变属性值后新产生的watcherthis.subs = [] // 储存订阅者的数组}depend () { // 触发target上的watcher的addDep的方法,参数为dep的实例本身Dep.target.addDep(this)}addSub () { // 添加订阅者th

2020-07-10 11:31:07 253

原创 一些简单的js手写代码题 网上很多 自己写来熟悉操作流程的

function creatNew () { // 实现 new 方法let obj = {} // 1.创建一个空对象let constructor = [].shift.call(arguments)obj._proto_ = constructor.prototype // 2.链接到原型let result = constructor.apply(obj, arguments) // 3.绑定this值return typeof result === 'object' ? ...

2020-07-09 16:23:00 196

原创 常用的mixin

/**@module mixin@author: huoyou@description: 通用mixin封装*/// 定位全屏.allcover {position: absolute;top: 0;right: 0;}// transform上下左右居中.tac {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);}// transform定位上下居中.ttc {posi

2020-07-07 17:18:49 162

原创 下拉刷新 上拉加载封装

/**@module scroll@author: huoyou@description: 引入mescroll的vue组件*/import MescrollVue from ‘mescroll.js/mescroll.vue’export default {components: {MescrollVue},data () {return {mescroll: null, // mescroll实例对象mescrollDown: {auto: false,callback

2020-06-23 21:38:50 175

原创 keepalive的bug修复问题

/**@module tabsKeepAlive@author: huoyou@description: mescroll 缓存处理*/export default {// mescrollType-1 普通mescroll// mescrollType-2 带tabs的mescrollmounted () {if (this.KaTeX parse error: Expected 'EOF', got '&' at position 22: …meta.keepAlive &a

2020-06-23 21:36:40 325

原创 自己在项目中写的一些柱状折线混合图 外带dataZoom的一些属性

// 折线与柱状混淆图getoption (echartsList) {// 指定图表的配置项和数据return {legend: { // 图标标记 右上角x: 'center',top: 30,right: 0,data: ['逾期额', '逾期率']},tooltip: { // 点击数据的坐标轴指示器show: true,trigger: 'axis',axisPointer: {type: 'line',axis: 'auto',li

2020-06-10 16:30:10 189

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除