当前位置:网站首页>JS cast
JS cast
2022-06-26 17:55:00 【Dandan's servant】
Numbers and other types of data When comparing , Will convert other types of data into numbers for comparison ( Some data types , For example, the array will first use toString Convert to string , Finally, it is converted into numbers ).
Boolean values and other data types When comparing , Will preferentially convert Boolean values to numbers , Then convert other data types to numbers for comparison , That is, the operation of the previous rule .
undefined Except for and null Perform an incomplete comparison and return true, All others are returned false.null Except for and undefined Perform an incomplete comparison and return true, All others are returned false.
Array ( Or object ) And string When comparing , Array ( Or object ) Will be converted to a string for comparison .
Use Boolean() When converting , If omitted or value 0,-0,null,false,NaN,undefined, Or empty string (""), The object has an initial value of false. All other values , Including any object , An empty array ([]) Or a string "false", Will create an initial value of true The object of .
边栏推荐
- [code Capriccio - dynamic planning] t583. Deleting two strings
- 在国金证券开户怎么样?保障安全吗?
- [qt learning notes]qt inter thread data communication and data sharing
- RuntimeError: CUDA error: out of memory自己的解决方法(情况比较特殊估计对大部分人不适用)
- Plt How to keep show() not closed
- Applet setting button sharing function
- Data Encryption Standard DES security
- RSA encryption and decryption details
- [uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure
- Knapsack problem with dependency
猜你喜欢

Live broadcast preview | how can programmers improve R & D efficiency? On the evening of June 21, the video number and station B will broadcast live at the same time. See you or leave!

MySQL的MVCC机制详解

LM06丨仅用成交量构造抄底摸顶策略的奥秘

丰富专业化产品线, 江铃福特领睿·极境版上市

pycharm的plt.show()如何保持不关闭

深层次安全定义剖析及加密技术

vue--vuerouter缓存路由组件

Daily record 2
![[uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure](/img/26/da00e70d0955bcdef3362474bc5fc7.png)
[uniapp] the uniapp mobile terminal uses uni Troubleshooting of navigateback failure

并发之线程安全
随机推荐
vutils. make_ A little experience of grid () in relation to black and white images
深入理解MySQL锁与事务隔离级别
Strength and appearance Coexist -- an exclusive interview with Liu Yu, a member of Apache pulsar PMC
【动态规划】剑指 Offer II 091. 粉刷房子
离婚协议中的几个重点
How to open a stock account? Is it safe to open an account online now?
在国金证券开户怎么样?保障安全吗?
行锁分析和死锁
DoS及攻擊方法詳解
Use FST JSON to automatically generate faster JSON serialization methods
在国金证券开户怎么样?开户安全吗?
10 cloud security best practices that enterprises need to know
同花顺开户怎么样安全吗?怎么炒股开户
#25class的类继承
JS 常用正则表达式
[buuctf.reverse] 126-130
二分查找-2
transforms. The input of randomcrop() can only be PIL image, not tensor
股票开账户如何优惠开户?现在在线开户安全么?
接水面试题