The difference between==and===in JavaScript
In JavaScript,==and===both represent logic, etc. The difference is that:
*When doing logic and other tasks, perform type conversion first.
*If===, then it won’t.
The following example:
1 | <script language="javascript"> |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
评论