December 4, 2020
angular
webWorker
angular升级
选择不同版本升级,得到一些指引update.angular.io
12345// Modern JS<script type="module" src="…">// Legacy JS<script nomodu ...
Read more
November 25, 2020
前端
面试
js
JS
Event Loop
执行异步,会创建微任务或者宏任务,添加到对应的队列中等待处理
环境:从左到右执行
同步
微任务队列
宏任务
浏览器
console之类的
promise.then 等
setTimeout,setInterval等逐个执行
node 11-
c ...
Read more
November 24, 2020
js
原生
性能
js code 优化提升性能
Chrome DevTool提升性能
Read more
November 19, 2020
前端
面试
js
算法
排序算法时间复杂度
算法提升
唯有多练习
常见站点
UVa Online Judge 世界各大赛事的题目,包括由IBM赞助的ACM国际大学生程序竞赛
Sphere Online Judge 支持用更多语言解题(包括JavaScript)
Coderbyte 用JavaSc ...
Read more
November 12, 2020
js
原生
性能
Consolecopy12let x = {a:1,b:2,test:() =>{}}copy(x) //copy 所有属性,方法不支持到文本编辑器ctrl+v
console.dir
查看所有对象的属性和方法
1console.dir(x)
...
Read more
November 9, 2020
自动化测试
cypress
selenium
Cypress介绍
Cypress优点
1.随时可截屏 - Cypress captures snapshots at the time of test execution.
2.不需要编写等待命令 - One doesn’t need to add explicit or implicit ...
Read more