当前位置:网站首页>8. = = and = = =?
8. = = and = = =?
2022-07-24 18:23:00 【yingxingyf】
===
1、 If the type is different , Just [ It's not equal ]
2、 If both are numerical , And it's the same value , that [ equal ].
3、 If both are strings , The characters in each position are the same , that [ equal ]; otherwise [ It's not equal ]
4、 If both values are true, Or both false, that [ equal ].
5、 If both values refer to the same object or function , that [ equal ]; otherwise [ It's not equal ].
6、 If both values are null, Or both undefined, that [ equal ].
==
1、 If the two value types are the same , Conduct === Compare .
2、 If the two value types are different , They may be equal . Carry out type conversion according to the following rules and then compare
a、 If one is null、 One is undefined, that [ equal ].
b、 If one is a string , One is numerical value , Convert a string into a numeric value and compare it .
c、 If any value is true, Turn it into 1 Compare again ; If any value is false, Turn it into 0 Compare again .
d、 Any other combination , all [ It's not equal ].
边栏推荐
- Four ways of simple interest mode
- [opencv] - thresholding
- undefined reference to H5PTopen
- Cookies and session "suggestions collection"
- Maximum sum and promotion of continuous subarrays (2)
- Use of jumpserver
- How to prepare for hyperinflation
- 1. Typeof view variable type?
- Baidu touch.js
- Array object methods commonly used traversal methods & higher-order functions
猜你喜欢

Shanghai Jiaotong University team used joint deep learning to optimize metabonomics research

安装JumpServer

Mozilla foundation released 2022 Internet health report: AI will contribute 15.7 trillion yuan to the global economy in 2030, and the investment in AI in the United States last year was nearly three t

The drop-down list component uses iscrol JS to achieve the rolling effect of the pit encountered

JumpServer的使用

7. Character coding?

Flink operation Hudi data table

Inheritance and Derive

PXE efficient batch network installation

Go language interface and type
随机推荐
Common methods of array (2)
空间三点画圆代码
6126. Design food scoring system
Problems needing attention in writing pages
Framework introduction
File upload vulnerability -.User.ini and.Htaccess
[verification] only numbers (positive and negative numbers) can be entered
Custom web framework
JS array method sort() collation parsing
字符串常用方法(2)
运维小白成长记——架构第8周
Icml2022 Best Paper Award: learning protein reverse folding from millions of predicted structures
PXE efficient batch network installation
The 5th Digital China Construction summit opened in Fuzhou, Fujian
Blackmagic Fusion Studio 18
Install jumpserver
JMeter -- prometheus+grafana server performance visualization
如何向 google colab 快速上传文件
Admin component
Mid year inventory | in 2022, PAAS will be upgraded again