当前位置:网站首页>查漏补缺(八)
查漏补缺(八)
2022-04-23 05:53:00 【KK要继续努力】
查漏补缺(八)
css选择器权重
JS>内联样式>ID选择器>类选择器>伪类选择器=属性选择器>伪元素选择器>通用选择器
伪元素和伪类元素的区别
- 伪类是在已有DOM标签的基础上,根据不同状态产生对应的样式,状态根据用户行为动态变化;伪元素则是在一个不存在的DOM上为其添加样式;
- 伪类元素使用冒号(:),伪元素使用双冒号(::);
- animation-timing-function:linear、ease、jump、step
- cellIndex是td标签的属性
- join()把一个数组转换成字符串,如果括号里没有值,默认以逗号分隔
- reduce()是一个累加器:求数组值的和、求数组最大值、数组去重
参考文章: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'
- 数组与字符串相加,转换成各自的字符串再加
- +'3’是number类型
- new Number是一个内置的函数构造函数。 虽然它看起来像一个数字,但它并不是一个真正的数字:它有一堆额外的功能,是一个对象。
译者注:==会引发隐式类型转换,右侧的对象类型会自动拆箱为Number类型。
然而,当我们使用===操作符时,类型和值都需要相等,new Number不是一个数字,是一个对象类型。两者都返回 false。
TCP协议通过使用连续ARQ协议和滑动窗口协议,来保证数据传输的正确性,从而提供可靠的传输
箭头函数没有自己的this,arguments,super或new.target
脚本
放中的情况:脚本会优先加载,但加载过程中,还没加载完,会使脚本访问不到中的元素。
放底部:脚本在加载后加载,能够保证脚本有效地访问的元素。
例外情况:脚本中没有访问元素的情况下,两种加载方式效果一致。
http请求返回码
使用Promise封装Ajax操作
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("网络异常"));
}
});
版权声明
本文为[KK要继续努力]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_45393020/article/details/123409072
边栏推荐
- [learn] HF net training
- Camera calibration: key point method vs direct method
- Declared as a global variable
- [UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
- 查漏补缺(五)
- Set与Map
- [UDS unified diagnostic service] II. Network layer protocol (1) - overview and functions of network layer
- SQLite3 encrypted version
- 服务器常见错误代码 总结
- sqlite编译
猜你喜欢

基于SSD的物体检测案例实现
VHDL arbitrary frequency divider (50% duty cycle)

FOC single resistance sampling position loop control servo motor
![[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)](/img/98/becd691d3d46f74f7666f5cb323eaf.png)
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)

微信小程序之 js 时间戳/1000 转换 秒,六个小时后,一天后,本周五 选项计算时间

QT add qserialport class to realize serial port operation
![[UDS unified diagnostic service] IV. typical diagnostic service (2) - data transmission function unit](/img/22/c501c79176a93345dc72ff150c53c3.png)
[UDS unified diagnostic service] IV. typical diagnostic service (2) - data transmission function unit
![[UDS unified diagnostic service] II. Network layer protocol (1) - overview and functions of network layer](/img/39/30bb897ff4467105de08c8c1c737ab.png)
[UDS unified diagnostic service] II. Network layer protocol (1) - overview and functions of network layer

FOC电机库 定点PID代码分析

信息学一本通-小球
随机推荐
Understanding of SSH public key and private key
汇编 32位无符号加法计算器
C [document operation] PDF files and pictures are converted to each other
逻辑回归原理及代码实现
C语言实用小技巧合集(持续更新)
Modify registry values
Vs can be compiled, but there will be a red underline to indicate the problem of undefined identifiers
C语言实现memcpy、memset、strcpy、strncpy、strcmp、strncmp、strlen
微信小程序之 js 时间戳/1000 转换 秒,六个小时后,一天后,本周五 选项计算时间
CUDA环境安装
生成快捷方式
[opencv] use filestorage to read and write eigenvectors
Krypton binary
赛氪-二进制
[UDS unified diagnosis service] i. diagnosis overview (3) - ISO 15765 architecture
C语言中volatile的使用
js获取链接?后边的参数名称或者值,根据url ?后的参数做判断
[UDS unified diagnosis service] IV. typical diagnosis service (1) - diagnosis and communication management function unit
C51/C52 特殊功能寄存器表
TensorFlow张量介绍