当前位置:网站首页>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
边栏推荐
- If you start from zero according to the frame
- ECMAScript history
- Use of five routing guards
- [WPF binding 3] listview basic binding and data template binding
- C listens for WMI events
- Halo open source project learning (II): entity classes and data tables
- Clickhouse table engine
- Kubernetes 服务发现 监控Endpoints
- Compare the performance of query based on the number of paging data that meet the query conditions
- Advantages and disadvantages of several note taking software
猜你喜欢

1217_使用SCons生成目标文件

48. Rotate image

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

索引:手把手教你索引从零基础到精通使用

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

Understanding of RPC core concepts

编译原理 求first集 follow集 select集预测分析表 判断符号串是否符合文法定义(有源码!!!)

440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题
![[WPF binding 3] listview basic binding and data template binding](/img/2e/fbdb4175297bb4964a8ccfd0b909ae.png)
[WPF binding 3] listview basic binding and data template binding

2. Electron's HelloWorld
随机推荐
Open futures, open an account, cloud security or trust the software of futures companies?
Kubernetes 服务发现 监控Endpoints
双闭环直流调速系统matlab/simulink仿真
tidb-server 的配置文件在哪里?
How to change input into text
SiteServer CMS5. 0 Usage Summary
Understanding of RPC core concepts
Learning record of uni app dark horse yougou project (Part 2)
198. Looting - Dynamic Planning
Matlab / Simulink simulation of double closed loop DC speed regulation system
Commonly used functions -- spineros:: and spineros::)
.Net Core3. 1 use razorengine NETCORE production entity generator (MVC web version)
Sword finger offer 03 Duplicate number in array
Shell - introduction, variables, and basic syntax
MySQL进阶学习之SQL优化【插入,主键,排序,分组,分页,计数】
Add drag and drop function to El dialog
470. Rand10() is implemented with rand7()
92. Reverse linked list II byte skipping high frequency question
31. Next arrangement
JVM类加载机制