当前位置:网站首页>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
边栏推荐
- 102. Sequence traversal of binary tree
- Some questions some questions some questions some questions
- Using quartz under. Net core -- a simple trigger of [7] operation and trigger
- C语言程序设计之函数的构造
- MySQL installation
- Node template engine (EJS, art template)
- Excel quickly and automatically fills the contents of a row on a blank cell
- 开期货,开户云安全还是相信期货公司的软件?
- Summary of common SQL statements
- 1217_使用SCons生成目标文件
猜你喜欢
Exercise: even sum, threshold segmentation and difference (two basic questions of list object)
[ES6] promise related (event loop, macro / micro task, promise, await / await)
01-初识sketch-sketch优势
【Appium】通过设计关键字驱动文件来编写脚本
Kubernetes 服务发现 监控Endpoints
ASP. Net core JWT certification
Using quartz under. Net core - [1] quick start
Clickhouse table engine
If you start from zero according to the frame
102. Sequence traversal of binary tree
随机推荐
uni-app黑马优购项目学习记录(下)
Manually implement simple promise and its basic functions
Generating access keys using JSON webtoken
198. 打家劫舍-动态规划
Using quartz under. Net core - calendar of [6] jobs and triggers
Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
In embedded system, must the program code in flash be moved to ram to run?
402. 移掉 K 位数字-贪心
双闭环直流调速系统matlab/simulink仿真
Change Oracle to MySQL
Using quartz under. Net core -- operation transfer parameters of [3] operation and trigger
Use of five routing guards
Metaprogramming, proxy and reflection
STM32 entry development board choose wildfire or punctual atom?
SiteServer CMS5. 0 Usage Summary
Double pointer advanced -- leetcode title -- container with the most water
Using quartz under. Net core - [1] quick start
Collection of common SQL statements
41. 缺失的第一个正数
Shell - introduction, variables, and basic syntax