当前位置:网站首页>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 ].
边栏推荐
- [opencv] - thresholding
- Space three point circle code
- 13. What is the difference between onkeydown, up and onkeypress?
- 3. Variable declaration promotion?
- Framework introduction
- Example of single table query in ORM student management system
- 6126. Design food scoring system
- Matlab simulation of drawing circle on sphere
- JMeter -- silent operation
- Learn redisson from scratch ------- topics (subscription and distribution)
猜你喜欢

Maximum sum and promotion of continuous subarrays (2)

Install jumpserver

jmeter --静默运行

【刷题记录】20. 有效的括号

Mid year inventory | in 2022, PAAS will be upgraded again

Simulation implementation vector

Web penetration experience summary ing

【“码”力全开,“章”显实力】2022年第1季Task挑战赛贡献者榜单

Emerging potential of interactive virtual reality technology in drug discovery

怎么解决idea中yaml无法识别或者飘红?
随机推荐
Ship new idea 2022.2 was officially released, and the new features are really fragrant!
Model saving and loading of sklearn
middleware
Four ways of simple interest mode
Pytoch's Journey 2: gradient descent
6126. 设计食物评分系统
Problems needing attention in writing pages
About the writing method of interface 1 chain interpretation 2. Method execution (finally) must be executed
Section 11 cache avalanche, hot data failure follow Daewoo redis ------- directory post
XSS bypass pose summary
下拉列表组件使用 iScroll.js 实现滚动效果遇到的坑
【“码”力全开,“章”显实力】2022年第1季Task挑战赛贡献者榜单
pycharm配置opencv库
Wechat applet
Cookies and session "suggestions collection"
【OpenCV】—阈值化
Guess JWT keyword
Still reading logs on the command line? Use kibana, visual log analysis yyds!
[OBS] dependency Library: x264 vs Build
如何为超级通胀做好准备