上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: 创建Gitee私人令牌: 1.进入Gitee - 用户 - 设置 - 私人令牌 - 生成新令牌,将得到一个access_token,格式为“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” 2.如果没有配置SSH需要先配置SSH 3.Windows系统用需要使用Cygwin64 T 阅读全文
posted @ 2021-12-26 15:23 starlog 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 使用nvm: C:\Users\lenovo\AppData\Roaming\nvm\v14.17.2\node_modules 直接安装Node.js: C:\Users\lenovo\AppData\Roaming\npm\node_modules 阅读全文
posted @ 2021-12-25 14:13 starlog 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 检出: svn checkout '服务器地址' --username=名称 --password=密码 提交到本地仓库: svn add . 更新代码: svn update 提交到远程的服务器,提交之前要update: svn commit -m "描述信息" 删除文件: svn rm 文件名 阅读全文
posted @ 2021-12-11 16:08 starlog 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 设置:打开vscode,文件 → 首选项 → 用户片段 → 在搜索框中搜索 JavaScript → 选择 JavaScript.json { // Place your snippets for javascript here. Each snippet is defined under a sn 阅读全文
posted @ 2021-12-11 15:40 starlog 阅读(282) 评论(0) 推荐(0) 编辑
摘要: // 使用立即执行的函数表达式 function count_js() { var arr = ["红-js", "黄-js", "蓝-js"]; for (var i = 0; i < arr.length; i++) { (function (i) { setTimeout(() => cons 阅读全文
posted @ 2021-11-01 15:34 starlog 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 一、起因: 1.super引用父类构造函数,在调用super之前,不能用this。 2.在使用super()之后,构造函数结束之前,this.props的值为undefined。 二、作用:使用super(props),调用父类构造函数,并初始化this.props。 阅读全文
posted @ 2021-10-30 19:58 starlog 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 一、前提: 1.JavaScript是单线程语言,代码从上到下执行。 2.JavaScript通过回调函数处理异步。 3.除了广义的同步任务和异步任务,任务还被更精细的定义为宏任务和微任务: 宏任务:整个script代码块、setTimeout、setInterval 微任务:Promise的.th 阅读全文
posted @ 2021-10-24 01:29 starlog 阅读(44) 评论(0) 推荐(0) 编辑
摘要: html, body { height: 100%; } 或 .element { height: 100vh; } 阅读全文
posted @ 2021-10-20 22:44 starlog 阅读(469) 评论(0) 推荐(0) 编辑
摘要: .clearfix::after { content: ''; display: table; clear: both; } .clearfix { *zoom: 1; /* 兼容 IE 低版本 */ } 或 .parent { overflow: hidden; } 阅读全文
posted @ 2021-10-20 18:44 starlog 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 函数防抖:函数被触发后过一段时间再执行,如果在这段时间内又被触发,则重新计时,即将多次高频操作优化为只在最后一次执行。应用场景为用户连续输入,只需要在输入结束后做一次校验即可,比如input搜索或校验。简而言之,就是在input请求时使用防抖。 function debounce(func, ms 阅读全文
posted @ 2021-10-18 19:04 starlog 阅读(1043) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 13 下一页