摘要: ==前端代码缩进2格== ==Java代码缩进4格== ==Golang代码缩进4格== 通用快捷方式 | 快捷键 | 说明 | | | | | Alt+/ | 代码提示 | | Shift+Alt+↑ 或 Shift+Alt+↓ | 复制整行 | | Alt+↑ 或 Alt+↓ | 移动代码 | 阅读全文
posted @ 2023-02-20 13:06 干徒 阅读(83) 评论(0) 推荐(0)
摘要: VMWare 【VMware安装原版macOS虚拟机,从此告别第三方封装镜像】 https://www.bilibili.com/video/BV1TP4y1i7kh/?share_source=copy_web&vd_source=e5014f57b96061a4d1009d47c32b74e8 阅读全文
posted @ 2023-02-20 13:05 干徒 阅读(310) 评论(0) 推荐(0)
摘要: 防抖函数 防抖函数 封装 // 防抖函数的封装 export default function debounce(func, delay){ let timer = null return function () { if (timer) clearTimeout(timer) timer = se 阅读全文
posted @ 2023-02-20 13:04 干徒 阅读(42) 评论(0) 推荐(0)
摘要: # TypeScript ## 准备 安装node.js ## 安装 ```shell npm install -g typescript ``` ## 查看版本 ```shell tsc -v ``` ==在编写ts代码时,有时虽然没有写错,但是依然有报错信息 如:`无法重新声明块范围变量`,只需 阅读全文
posted @ 2023-02-20 13:03 干徒 阅读(96) 评论(0) 推荐(0)
摘要: Object.assign() const a = {name: '小华', age: 19, sex: '女'} const b = {name: '小华', age: 20} const c = Object.assign(a, b) console.log(a) console.log(b) 阅读全文
posted @ 2023-02-20 12:58 干徒 阅读(1685) 评论(0) 推荐(0)
摘要: 初始化样式 body, html, div, p, span, i, b, ul, ol li, input, img, video { padding: 0; margin: 0; box-sizing: border-box; } img { vertical-align: bottom; ob 阅读全文
posted @ 2023-02-20 12:58 干徒 阅读(80) 评论(0) 推荐(0)