摘要: 1、安装yarn curl -o- -L https://yarnpkg.com/install.sh | bash 出现了提示信息: > WARNING: GPG is not installed, integrity can not be verified! > Extracting to ~/ 阅读全文
posted @ 2019-06-23 13:35 侧耳倾听5 阅读(2187) 评论(0) 推荐(0) 编辑
摘要: 加入.babelrc文件 阅读全文
posted @ 2019-03-06 17:35 侧耳倾听5 阅读(7318) 评论(0) 推荐(0) 编辑
摘要: git pull origin master 报错:fatal: Authentication failed for git地址 win10 --> 控制面板 --> 用户账户 --> 管理你的凭证 --> Windows凭证 --> 删除已有的git普通凭证 然后 git pull origin 阅读全文
posted @ 2019-01-14 11:02 侧耳倾听5 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目描述: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can 阅读全文
posted @ 2019-01-13 13:54 侧耳倾听5 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 一、Extensions面板中搜索并安装Debugger for Chrome插件 二、Debug面板中,下拉框选择Add Configuration,出现launch.json,里面配置chrome信息 三、在项目文件里面打上断点,启动调试。DEBUG CONSOLE 控制台查看debug结果。 阅读全文
posted @ 2019-01-12 16:36 侧耳倾听5 阅读(3724) 评论(0) 推荐(0) 编辑
摘要: 单选题: 1, 2, 阅读全文
posted @ 2018-09-16 16:54 侧耳倾听5 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 2018年9月14日的一次笔试题。 JS部分: 1,typeof []; // "object" 2,[].constructor == Object; // false [].constructor == Array ; // true 3,请实现“<a id = "qqlink" href = 阅读全文
posted @ 2018-09-14 20:34 侧耳倾听5 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 代码实现"HelloMeituanCom"转换为"hello.meituan.com" 思路是:找到字符串中每个大写字母的下标index,存入indexArr数组中;然后使用数组的slice()方法将每两个大写字母之间的值取出,并放入midArr数组中;中途使用map()将所有的大写字母转换为小写, 阅读全文
posted @ 2018-09-02 09:55 侧耳倾听5 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 周末,打开电脑后,脑子里突然想到一个问题,JS如何实现数组去重?于是乎,在Google控制台上码了一个函数arrSingle。 这里使用了一个Array.prototype.indexOf()方法,indexOf()方法返回在数组中可以找到一个给定元素的第一个索引,如果不存在,则返回-1. 摘自MD 阅读全文
posted @ 2018-08-26 09:09 侧耳倾听5 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Number()、parseInt()和parseFloat()函数可以把非数值转换为数值。其中Number()可以用于任何数据类型,另两个则专门用于把字符串转换成数值。 一、Number()转换为0: 1,Boolean值false可以转换为0,true转换为1; 2,null值转换为0; 3,空 阅读全文
posted @ 2018-08-25 09:52 侧耳倾听5 阅读(142) 评论(0) 推荐(0) 编辑