Last active
December 9, 2015 22:08
-
-
Save bachue/4334958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
再来说说有三个等号的比较操作===。 | |
通常情况下这中方式与==是一样的,但是在某些特定情况下,===有特殊的含义: | |
在Range中===用于判断等号右边的对象是否包含于等号左边的Range; | |
正则表达式中用于判断一个字符串是否匹配模式, | |
Class定义===来判断一个对象是否为类的实例, | |
Symbol定义===来判断等号两边的符号对象是否相同。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment