只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-07-21 22:32 林中有风 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 执行下面 node --inspect-brk 【文件路径】 2. 成功后在浏览器上输入 chrome://inspect/#devices 3. 点击 inspect 进入调试 阅读全文
posted @ 2021-09-01 20:22 林中有风 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 一、镜像源 查询当前镜像源 npm get registry 设置为淘宝镜像 npm config set registry http://registry.npm.taobao.org/ 设置回默认的官方镜像 npm config set registry https://registry.npm 阅读全文
posted @ 2021-01-25 09:14 林中有风 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 通过两个三角形来叠加出边框来实现 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0 阅读全文
posted @ 2021-01-06 10:50 林中有风 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 前端开发使用 npm 或者 yarn 下载过程中可能会下载非常慢甚至报错,我们可以配置国内 淘宝镜像 来解决这个问题。具体方法如下: npm 查询当前镜像 npm get registry 设置为淘宝镜像 npm config set registry http://registry.npm.tao 阅读全文
posted @ 2020-12-25 15:24 林中有风 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 重启命令: 1、reboot2、shutdown -r now 立刻重启(root用户使用)3、shutdown -r 10 过10分钟自动重启(root用户使用)4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用)如果是通过shutdown命令设置重启的话,可以用 阅读全文
posted @ 2020-10-30 14:36 林中有风 阅读(587) 评论(0) 推荐(0) 编辑
摘要: //字符串编码转为unicode编码 function charToUnicode(str) { let temp; let i = 0; let r = ''; for (let val of str) { temp = val.codePointAt(0).toString(16); while 阅读全文
posted @ 2020-09-16 09:43 林中有风 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: (function () { var slice = Array.prototype.slice; Function.prototype.bind = function () { var thatFunc = this, thatArg = arguments[0]; var args = slic 阅读全文
posted @ 2020-09-04 09:56 林中有风 阅读(181) 评论(0) 推荐(0) 编辑
摘要: // 判断是否是普通对象 export function isPlainObject(val: any): val is Object { return toString.call(val) '[object Object]' } 合并逻辑 function deepMerge(...objs: a 阅读全文
posted @ 2020-09-01 17:31 林中有风 阅读(458) 评论(0) 推荐(0) 编辑
摘要: git init 初始化git status 查看仓库状态 git clone 路径 拉取master分支内容 git clone -b 分支名 路径 拉取指定分支内容 git log // 查看git的commit信息,每次提交的信息包括注视在内,从最新提交到最久提交 提交git add . 将所 阅读全文
posted @ 2020-08-31 11:34 林中有风 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 当点击不同菜单时 来定位当前到位置 let arr = [ { title: "一级0" }, { title: "一级1" }, { title: "一级2", subs: [ { title: "二级0" }, { title: "二级1", subs: [{ title: "三级0" }, { 阅读全文
posted @ 2020-08-28 15:20 林中有风 阅读(501) 评论(0) 推荐(0) 编辑