上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 61 下一页
摘要: function fun(a,b){ console.log("a = "+ a); console.log("b = "+ b); alert(this); } var obj= { name:"obj", sayName:function(){ alert(this.name); } }; /* 阅读全文
posted @ 2021-05-03 23:40 13522679763-任国强 阅读(36) 评论(0) 推荐(0)
摘要: // var arr2 = [1,2,3,2,2,1,3,4,2,5]; // // 数组去重 // for(var i=0;i<arr2.length;i++){ // // console.log(arr2[i]); // // 获取当前元素后的元素 // for(var j=i+1;j<arr 阅读全文
posted @ 2021-05-03 23:19 13522679763-任国强 阅读(114) 评论(0) 推荐(0)
摘要: // var arr = ["Eric",'Lilei','Jok',"Ela"]; /** * slice() * 可以用来从数组提取指定元素 * 不会改变原数组 而是将截取到的元素封装到一个新数组中返回 * --参数 * 1. 截取开始的位置 包含开始索引 * 2. 截取结束的位置 不包含开始索 阅读全文
posted @ 2021-05-03 22:37 13522679763-任国强 阅读(104) 评论(0) 推荐(0)
摘要: 第一种 当 有冲突时,手动把 冲突的文件修改一下,去掉多余的 head 注释 和 标识符 然后 git add . git commit -m '' , 重新提交就可以 阅读全文
posted @ 2021-04-27 23:23 13522679763-任国强 阅读(102) 评论(0) 推荐(0)
摘要: git checkout -b test 创建并 切换分支 git checkout master 切换到 master 分支 git merge dev 合并dev 分支到当前分支 git branch -d test // 删除指定分支 git diff master dev 显示出 两个分支之 阅读全文
posted @ 2021-04-27 23:01 13522679763-任国强 阅读(47) 评论(0) 推荐(0)
摘要: git log 显示从最近到最远的所有提交日志 git reflog 显示每次提交的 commit 的 comit id git reset --hard HEAD^ // 回退到 最后一次提交的版本 git reset --hard 版本id // 回退到 当前id 提交的版本 -> id 可以通 阅读全文
posted @ 2021-04-27 22:14 13522679763-任国强 阅读(86) 评论(0) 推荐(0)
摘要: git diff 比较暂存区 与 工作区 git diff --cached 比较 版本区 与 暂存区 git diff master 比较版本区 与工作区 阅读全文
posted @ 2021-04-27 21:36 13522679763-任国强 阅读(80) 评论(0) 推荐(0)
摘要: 初始化仓库 git init 添加指定文件 到 暂存区 git add . 解决 换行符不一致导致的提示 warning: LF will be replaced by CRLF in a.txt.The file will have its original line endings in you 阅读全文
posted @ 2021-04-26 22:20 13522679763-任国强 阅读(33) 评论(0) 推荐(0)
摘要: n git config --global user.name "Your Name" n git config --global user.email "email@example.com" n git config user.name 查看配置的姓名 n git config user.emai 阅读全文
posted @ 2021-04-26 21:39 13522679763-任国强 阅读(561) 评论(0) 推荐(0)
摘要: # 将联合查询到的数据转成对象(一对多)SELECT products.id id, products.title title, products.price price, JSON_OBJECT('id', brand.id, 'name', brand.name, 'website', bran 阅读全文
posted @ 2021-04-22 10:30 13522679763-任国强 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 61 下一页