当前位置:网站首页>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
边栏推荐
- 48. Rotate image
- How to change input into text
- 2021 Great Wall Cup WP
- QT modification UI does not take effect
- 92. Reverse linked list II byte skipping high frequency question
- MySQL advanced index [classification, performance analysis, use, design principles]
- [simple understanding of database]
- matlab如何绘制已知公式的曲线图,Excel怎么绘制函数曲线图像?
- Open futures, open an account, cloud security or trust the software of futures companies?
- 470. 用 Rand7() 实现 Rand10()
猜你喜欢
Using quartz under. Net core -- operation transfer parameters of [3] operation and trigger
土地覆盖/利用数据产品下载
Using quartz under. Net core -- general properties and priority of triggers for [5] jobs and triggers
92. 反转链表 II-字节跳动高频题
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
Advantages and disadvantages of several note taking software
HCIP第五次实验
常用SQL语句总结
Hcip fifth experiment
flink 学习(十二)Allowed Lateness和 Side Output
随机推荐
Generating access keys using JSON webtoken
剑指 Offer 22. 链表中倒数第k个节点-快慢指针
48. Rotate image
ros常用的函数——ros::ok(),ros::Rate,ros::spin()和ros::spinOnce()
Oninput one function to control multiple oninputs (take the contents of this input box as parameters) [very practical, very practical]
394. String decoding - auxiliary stack
Construction of functions in C language programming
Collection of common SQL statements
Clickhouse SQL operation
41. 缺失的第一个正数
ECMAScript history
常用SQL语句总结
MySQL进阶之索引【分类,性能分析,使用,设计原则】
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
402. 移掉 K 位数字-贪心
Self use learning notes - connectingstring configuration
48. 旋转图像
JVM类加载机制
EasymodbusTCP之clientexample解析
440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题