摘要: react React 是 自顶向下的进行递归更新 的 什么是 “React Fiber” ? Fiber 是 React 16 中新的协调引擎。它的主要目的是使 Virtual DOM 可以进行增量式渲染 React Fiber 的目标是提高其对动画、布局和手势等领域的适用性。它的标题功能是增量渲 阅读全文
posted @ 2022-03-26 11:37 _clai 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 对象 let obj = { user: { name: "zhang", age: 20, school: { name: "清华", class: 3, grader: 1 } } } 例:获取 obj.user.school.name 首先使用 split,转为数组 然后使用 shift() 阅读全文
posted @ 2020-05-27 18:22 _clai 阅读(379) 评论(0) 推荐(0) 编辑
摘要: <div id="app"> <header> <span style="font-size: 22px;">&lt;</span> <h3 style="display: inline-block;">helloWorld</h3> </header> <p>hello</p> <button t 阅读全文
posted @ 2020-05-26 14:34 _clai 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 禁止选中文本 css 写法 .box { /* 禁止选中文本 */ -moz-user-select: none; /*火狐*/ -webkit-user-select: none; /*webkit浏览器*/ -ms-user-select: none; /*IE10*/ -khtml-user- 阅读全文
posted @ 2020-04-11 16:31 _clai 阅读(1324) 评论(0) 推荐(0) 编辑