当前位置:网站首页>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
边栏推荐
- MySQL进阶学习之SQL优化【插入,主键,排序,分组,分页,计数】
- Double pointer advanced -- leetcode title -- container with the most water
- Tdan over half
- Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
- 给 el-dialog 增加拖拽功能
- Read software engineering at Google (15)
- 剑指 Offer 03. 数组中重复的数字
- QT modification UI does not take effect
- Future 用法详解
- 102. Sequence traversal of binary tree
猜你喜欢

2021长城杯WP

Learning record of uni app dark horse yougou project (Part 2)

SystemVerilog(六)-变量

Hcip fifth experiment

ASP. Net core JWT certification

48. 旋转图像

Dry goods | how to extract thumbnails quickly?

嵌入式系统中,FLASH中的程序代码必须搬到RAM中运行吗?

Halo open source project learning (II): entity classes and data tables

PC电脑使用无线网卡连接上手机热点,为什么不能上网
随机推荐
土地覆盖/利用数据产品下载
Advantages and disadvantages of several note taking software
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
读《Software Engineering at Google》(15)
Learning record of uni app dark horse yougou project (Part 2)
For the space occupation of the software, please refer to the installation directory
2021 Great Wall Cup WP
2. Electron's HelloWorld
Commonly used functions -- spineros:: and spineros::)
Using quartz under. Net core -- operation transfer parameters of [3] operation and trigger
双指针进阶--leetcode题目--盛最多水的容器
Self use learning notes - connectingstring configuration
Manually implement call, apply and bind functions
Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
958. Complete binary tree test
470. Rand10() is implemented with rand7()
Use of shell sed command
Open futures, open an account, cloud security or trust the software of futures companies?
基于51单片机红外无线通讯仿真
Low code development platform sorting