当前位置:网站首页>Leak detection and vacancy filling (VIII)
Leak detection and vacancy filling (VIII)
2022-04-23 17:41:00 【KK should continue to work hard】
Leak filling ( 8、 ... and )
css Selector weight
JS> inline style >ID Selectors > Class selectors > Pseudo class selector = Attribute selector > Pseudo element selector > Universal selector
The difference between pseudo elements and pseudo class elements
- Pseudo class is in the existing DOM On the basis of labels , Generate corresponding styles according to different states , The state changes dynamically according to user behavior ; The pseudo element is in a nonexistent DOM Add a style to it on ;
- Pseudo class elements use colons (:), Pseudo elements use double colons (::);
- animation-timing-function:linear、ease、jump、step
- cellIndex yes td Attributes of the tag
- join() Convert an array into a string , If there is no value in parentheses , Comma separated by default
- reduce() It's an accumulator : Sum array values 、 Find the maximum value of array 、 Array weight removal
Reference article :https://www.cnblogs.com/amujoe/p/11376940.html
['a','b','c'].join() //'a,b,c'
['a','b','c']+'' //'a,b,c'
['a','b','c'].reduce((a,b)=>a+b,'') //'abc'
['a','b','c'].join('') //'abc'
- Add an array to a string , Convert to their respective strings and add
- +'3’ yes number type
- new Number Is a built-in function constructor . Although it looks like a number , But it's not a real number : It has a bunch of extra features , It's an object .
translator's note :== Will cause implicit type conversion , The object type on the right will be unpacked automatically as Number type .
However , When we use === When the operator , Both types and values need to be equal ,new Number It's not a number , It's an object type . Both return to false.
TCP The protocol is implemented by using continuous ARQ Protocol and sliding window protocol , To ensure the correctness of data transmission , So as to provide reliable transmission
Arrow function does not have its own this,arguments,super or new.target
Script
In the middle : The script will be loaded first , But during loading , Not finished loading , It will make the script unable to access the elements in .
Put the bottom : The script loads after loading , Elements that can ensure that the script can access effectively .
Exceptions : When there is no access element in the script , The two loading methods have the same effect .
http Request return code
Use Promise encapsulation Ajax operation
return new Promise(function(resolve, reject){
var req = new XMLHttpRequest();
req.open("POST", "www.baidu.com", true);
req.onload = function(){
if(req.readyState === 4 && req.status === 200){
resolve(req.response);
} else {
reject(req.statusText);
}
}
req.onerror = function(){
reject(Error(" Network anomalies "));
}
});
版权声明
本文为[KK should continue to work hard]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230551363435.html
边栏推荐
- Clickhouse - data type
- Some questions some questions some questions some questions
- Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
- [logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
- Use of Shell sort command
- JVM类加载机制
- 剑指 Offer 03. 数组中重复的数字
- Abnormal resolution of Xiaomi camera
- How to use the input table one-way service to send (occupy less) picture files (body transmission)? FileReader built-in object involved
- 双指针进阶--leetcode题目--盛最多水的容器
猜你喜欢
HCIP第五次实验
双指针进阶--leetcode题目--盛最多水的容器
.Net Core3. 1 use razorengine NETCORE production entity generator (MVC web version)
Using quartz under. Net core -- job attributes and exceptions of [4] jobs and triggers
干货 | 快速抽取缩略图是怎么练成的?
48. Rotate image
Summary of common SQL statements
92. Reverse linked list II byte skipping high frequency question
470. Rand10() is implemented with rand7()
flink 学习(十二)Allowed Lateness和 Side Output
随机推荐
Kubernetes 服务发现 监控Endpoints
1217_ Generating target files using scons
Use of Shell sort command
How to sort the numbers with text in Excel from small to large instead of the first number
剑指 Offer 03. 数组中重复的数字
[WPF binding 3] listview basic binding and data template binding
2.Electron之HelloWorld
SQL optimization for advanced learning of MySQL [insert, primary key, sort, group, page, count]
01-初识sketch-sketch优势
開期貨,開戶雲安全還是相信期貨公司的軟件?
Tdan over half
SiteServer CMS5. 0 Usage Summary
Self use learning notes - connected and non connected access to database
31. Next arrangement
440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题
Using quartz under. Net core -- job attributes and exceptions of [4] jobs and triggers
Why do some people say SCM is simple and I have to learn it so hard?
SystemVerilog(六)-变量
索引:手把手教你索引从零基础到精通使用
Summary of common SQL statements