自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 【无标题】

GO

2022-08-14 21:49:52 46 1

原创 git 关联分支

git

2022-06-29 17:30:11 876

原创 JavaScript手写Promise

const PROMISE_STATUS_PENDING = 'pending' const PROMISE_STATUS_FULFILLED = 'fulfilled' const PROMISE_STATUS_REJECTED = 'rejected' // 工具函数 function execFunctionWithCatchError(execFn, value, resolve, reject) { try { const result = execFn(value) res

2022-01-28 15:57:11 886

原创 VUE3实现响应式原理

// 保存当前需要收集的响应式函数 let activeFn = null /** * Depend优化: * 1> depend方法 * 2> 使用Set来保存依赖函数, 而不是数组[] */ class Depend { constructor() { this.reactiveFns = new Set() } // addDepends(fn) { // this.reactiveFns.push(fn) /

2022-01-26 16:29:20 54

原创 函数柯理化

function add(x, y, z) { return x + y + z } function myCurring(fn) { return function curried(...args) { //当参数大于等于原函数参数可直接调用函数 if (fn.length <= args.length) { return fn.apply(this, args) } else { //

2022-01-05 21:30:45 137

原创 JavaScript实现放大镜

效果图 <div class="wrap"> <!-- 小图与遮罩 --> <div id="small"> <img src="./test.JPG" alt=""> <div id="mark"></div> </div> <!-- 等比例放大的大图 --> <div i

2021-11-22 21:01:16 564

空空如也

空空如也

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

TA关注的人

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