摘要:
# prettier 先安装在 `devDependencies` 上 npx mrm lint-staged 阅读全文
摘要:
// 捕获阶段 捕获错误 window.addEventListener('error', (err) =>{ console.log(err) // 错误处理... }, true) window.addEventListener("unhandledrejection", (err) => { 阅读全文
摘要:
Int8Array、Uint8Array 最值范围: # 有符号整数 [- (2 ** (n - 1)), 2 ** (n - 1) - 1] # 无符号整数 [0, 2 ** n - 1] 有符号整数 第一个表示符号位,不参与运算 正数 0 负数 1 阅读全文
摘要:
function getDistance(_current, _building, showKM = false) { let current = JSON.parse(JSON.stringify(_current)), building = JSON.parse(JSON.stringify(_ 阅读全文
摘要:
react React 是 自顶向下的进行递归更新 的 什么是 “React Fiber” ? Fiber 是 React 16 中新的协调引擎。它的主要目的是使 Virtual DOM 可以进行增量式渲染 React Fiber 的目标是提高其对动画、布局和手势等领域的适用性。它的标题功能是增量渲 阅读全文
摘要:
对象 let obj = { user: { name: "zhang", age: 20, school: { name: "清华", class: 3, grader: 1 } } } 例:获取 obj.user.school.name 首先使用 split,转为数组 然后使用 shift() 阅读全文
摘要:
<div id="app"> <header> <span style="font-size: 22px;"><</span> <h3 style="display: inline-block;">helloWorld</h3> </header> <p>hello</p> <button t 阅读全文
摘要:
禁止选中文本 css 写法 .box { /* 禁止选中文本 */ -moz-user-select: none; /*火狐*/ -webkit-user-select: none; /*webkit浏览器*/ -ms-user-select: none; /*IE10*/ -khtml-user- 阅读全文