当前位置:网站首页>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 ].
边栏推荐
- Space three point circle code
- The drop-down list component uses iscrol JS to achieve the rolling effect of the pit encountered
- About the writing method of interface 1 chain interpretation 2. Method execution (finally) must be executed
- web渗透经验汇总ing
- A practical scheme of realizing 0.5px on mobile terminal
- 字符串常用方法(2)
- 1. Typeof view variable type?
- 7. Character coding?
- 数组对象方法 常用遍历方法&高阶函数
- Growth of operation and maintenance Xiaobai - week 8 of Architecture
猜你喜欢

7. Character coding?

Pycharm configuring opencv Library

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

Simulation implementation vector

jmeter --静默运行

6126. 设计食物评分系统

9. BOM object?

Flink operation Hudi data table

In depth analysis of the famous Alibaba cloud log4j vulnerability

【obs】依赖库: x264 vs 构建
随机推荐
颜色的13 个必备方法!
The drop-down list component uses iscrol JS to achieve the rolling effect of the pit encountered
web渗透经验汇总ing
Template inheritance and import
Techempower web framework performance test 21st round results release --asp Net core continue to move forward
T245982 "kdoi-01" drunken flower Yin
Example of single table query in ORM student management system
Laravel笔记-用户登录时密码进行RSA加密(提高系统安全性)
KiB、MiB与KB、MB的区别
Bib | mol2context vec: context aware deep network model learning molecular representation for drug discovery
redis集群的三种方式
pycharm配置opencv库
JMeter -- prometheus+grafana server performance visualization
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
Go to bed capacity exchange
steam API
如何用WebGPU流畅渲染百万级2D物体?
Learn redisson from scratch ------- topics (subscription and distribution)
Cookies and session "suggestions collection"
sklearn 的模型保存与加载使用