标签云

微信群

扫码加入我们

WeChat QR Code

在JavaScript中是!=一样!= = [复制]

Possible Duplicates:
Javascript === vs == : Does it matter which “equal” operator I use?
Javascript operator !==

Look at this commit

Is != same as !== in JavaScript?

[1]:


See stackoverflow.com/questions/359494/javascript-vs

2018年05月23日11分06秒

-1: Was google broken? A search for "Javascript comparison operators" turned up dozens of explanations of the difference. What was wrong with those? What more did you need to know?

2018年05月23日11分06秒

S.Lott: He needed to have known that they were called "Javascript comparison operators" for one thing - which the question doesn't imply he does (to be fair to the original poster).

2018年05月24日11分06秒

Try to type in !== in google and see what results you get. Even javascript !== - so google won't help

2018年05月23日11分06秒

dang, some of you are cranky

2018年05月23日11分06秒

Spiffing answer old chap

2018年05月23日11分06秒

And for the full skinny, there's nothing like the spec. You can download the latest from here: ecma-international.org/publications/files/drafts It's the PDF file starting with "tc39-" (as of this writing, tc39-2009-050.pdf). That says it's a draft, but it was voted through earlier this month.

2018年05月23日11分06秒

And see stackoverflow.com/questions/359494/… how to read the spec!

2018年05月23日11分06秒

Hehe, the fact that you need a manual to read a spec really says something about the quality of the spec itself :)

2018年05月23日11分06秒