当前位置:网站首页>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
边栏推荐
- 122. 买卖股票的最佳时机 II-一次遍历
- Oninput one function to control multiple oninputs (take the contents of this input box as parameters) [very practical, very practical]
- JVM class loading mechanism
- Generating access keys using JSON webtoken
- 402. Remove K digits - greedy
- 给 el-dialog 增加拖拽功能
- Clickhouse table engine
- Manually implement simple promise and its basic functions
- 開期貨,開戶雲安全還是相信期貨公司的軟件?
- 470. Rand10() is implemented with rand7()
猜你喜欢

Collection of common SQL statements
![MySQL advanced index [classification, performance analysis, use, design principles]](/img/96/b031868602a7b8ba4edd0d74c843b3.png)
MySQL advanced index [classification, performance analysis, use, design principles]

How to change input into text

Index: teach you index from zero basis to proficient use

Qt 修改UI没有生效

练习:求偶数和、阈值分割和求差( list 对象的两个基础小题)

440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question

关于gcc输出typeid完整名的方法

ASP. Net core JWT certification

Allowed latency and side output
随机推荐
C listens for WMI events
1217_ Generating target files using scons
Clickhouse table engine
In embedded system, must the program code in flash be moved to ram to run?
Ring back to origin problem - byte jumping high frequency problem
402. Remove K digits - greedy
超分之TDAN
一些问题一些问题一些问题一些问题
uni-app黑马优购项目学习记录(下)
開期貨,開戶雲安全還是相信期貨公司的軟件?
48. Rotate image
Future usage details
node中,如何手动实现触发垃圾回收机制
Read software engineering at Google (15)
How to manually implement the mechanism of triggering garbage collection in node
土地覆盖/利用数据产品下载
基于51单片机红外无线通讯仿真
102. 二叉树的层序遍历
Understanding and small examples of unity3d object pool
440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question