当前位置:网站首页>Leak detection and vacancy filling (VII)
Leak detection and vacancy filling (VII)
2022-04-23 17:41:00 【KK should continue to work hard】
Leak filling ( 7、 ... and )
standard
1. Inline elements cannot contain block level elements ;
2. Block level elements can contain inline elements or some block level elements ;
3. p Tags cannot contain any block level elements , Include yourself ;
4. a Tags can contain any element , But it cannot contain itself ;
5. h1、h2、h3、h4、h5、h6、p、dt Cannot contain block level elements ;
6. h5 My new label is footer, No foot;
7. h5 The label has main label
Pass on the overhead of the rendering phase to the computing phase .
Use multiple layered Canvas Draw complex scenes .
Don't set the drawing context frequently font attribute .
Not used in animation putImageData Method .
Through calculation and judgment , Avoid unnecessary drawing operations .
Pre draw fixed content off screen Canvas To improve performance .
Use Worker And the method of splitting tasks to avoid complex algorithms blocking animation operation
https://blog.csdn.net/weixin_33940102/article/details/90687163?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
'9' < '10' //false
String('a') === 'a' //true
new String('a') === 'a' //false
JS The string comparison size in is used to compare different characters of a string ASCII Code value
Object.defineProperty
const obj = {
a: 1,
b: 2
}
Object.defineProperty(obj,'c', {
value: 3,
// Restrictions on this property , If it is allowed to edit 、 Whether to allow traversal
//writable
//enumerable
})
for in
for in Traversal can traverse itself and parent attributes , Cannot traverse grandpa and later properties
Event bubbling and event default
preventDefault() Prevent event default behavior
stopPropagation() W3C Standard to stop bubbling
cancelBubble() ie To stop bubbling
https://www.cnblogs.com/zhangq/p/10621413.html
let And var The difference between
- let It's a block level scope ,var It's a function scope ;
- let Must declare before use ,var Sure , And the result printed before the declaration is undefined;
- let Cannot redefine with variable name ,var Sure ;
- let、var stay for The difference in the loop :
-
- because let It's a block level scope , Use let Defined for The loop variable creates a scope each time it loops , Loop variables are local variables and will not be affected by subsequent loops ;
-
- var Global variable , stay for Every change in the loop changes the global variable
-
- const It is not actually guaranteed that the value of the variable cannot be changed , But the memory address that the variable points to must not be changed . For simple types of data , The value is stored in the memory address that the variable points to , So it's equivalent to a constant . But for data of composite type , The memory address pointed to by the variable holds only a pointer ,const It can only be guaranteed that the pointer is fixed , As for whether the data structure it points to is variable , You can't control .
JS Modular specification
AMD、commonJS、ES Modules
require.js yes amd The implementer of the specification
版权声明
本文为[KK should continue to work hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551363548.html
边栏推荐
- Self use learning notes - connectingstring configuration
- 索引:手把手教你索引从零基础到精通使用
- 1217_ Generating target files using scons
- MySQL进阶学习之SQL优化【插入,主键,排序,分组,分页,计数】
- Learning record of uni app dark horse yougou project (Part 2)
- Construction of functions in C language programming
- 102. 二叉树的层序遍历
- In ancient Egypt and Greece, what base system was used in mathematics
- 402. 移掉 K 位数字-贪心
- 剑指 Offer 03. 数组中重复的数字
猜你喜欢

STM32 entry development board choose wildfire or punctual atom?

394. 字符串解码-辅助栈

470. 用 Rand7() 实现 Rand10()

QT modification UI does not take effect
Compare the performance of query based on the number of paging data that meet the query conditions
![[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof](/img/71/14a17128dbe0f02edb4db3da479ef2.jpg)
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
MySQL installation

Clickhouse table engine

Perception of linear algebra 2

48. Rotate image
随机推荐
PC电脑使用无线网卡连接上手机热点,为什么不能上网
土地覆盖/利用数据产品下载
386. Dictionary order (medium) - iteration - full arrangement
01-初识sketch-sketch优势
Where is the configuration file of tidb server?
Manually implement simple promise and its basic functions
470. 用 Rand7() 实现 Rand10()
圆环回原点问题-字节跳动高频题
为什么有些人说单片机简单,我学起来这么吃力?
2. Electron's HelloWorld
Excel quickly and automatically fills the contents of a row on a blank cell
Index: teach you index from zero basis to proficient use
102. 二叉树的层序遍历
Perception of linear algebra 2
Collection of common SQL statements
JVM class loading mechanism
Halo open source project learning (II): entity classes and data tables
How to change input into text
MySQL installation
node中,如何手动实现触发垃圾回收机制