{"json_modified": "2016-08-25T00:42:38.429054", "uuid": "49bc76f9-36df-448f-bc43-d9ef67553ed2", "title": "JavaScript \u4e2d\u7684\u76f8\u7b49\u6027\u5224\u65ad", "url": "/zh-CN/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["\u76f8\u7b49", "\u6bd4\u8f83", "\u96f6\u503c\u76f8\u7b49", "\u540c\u503c\u76f8\u7b49", "\u975e\u4e25\u683c\u76f8\u7b49", "JavaScr", "\u4e25\u683c\u76f8\u7b49"], "translations": [{"uuid": "0d34dfd0-0c19-4ddb-b798-a6d8ccf7a43c", "title": "Equality comparisons and sameness", "url": "/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["SameValueZero", "SameValue", "Equality", "Sameness", "JavaScript", "Intermediate", "Comparison"], "summary": "Briefly, double equals will perform a type conversion when comparing two things; triple equals will do the same comparison without type conversion (by simply always returning false if the types differ); and Object.is
will behave the same way as triple equals, but with special handling for NaN
and -0
and +0
so that the last two are not said to be the same, while Object.is(NaN, NaN)
will be true
. (Comparing NaN
with NaN
ordinarily\u2014i.e., using either double equals or triple equals\u2014evaluates to false
, because IEEE 754 says so.) Do note that the distinction between these all have to do with their handling of primitives; none of them compares whether the parameters are conceptually similar in structure. For any non-primitive objects x and y which have the same structure but are distinct objects themselves, all of the above forms will evaluate to false.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-05-05T11:33:15", "review_tags": []}, {"uuid": "3b0bd3db-b05c-4b27-ae92-173b32847e39", "title": "Utiliser les diff\u00e9rents tests d'\u00e9galit\u00e9", "url": "/fr/docs/Web/JavaScript/Les_diff%C3%A9rents_tests_d_%C3%A9galit%C3%A9", "tags": ["Guide", "Interm\u00e9diaire", "JavaScript"], "summary": "En r\u00e9sum\u00e9, l'\u00e9galit\u00e9 faible effectuera une conversion des deux \u00e9l\u00e9ments \u00e0 comparer avant d'effectuer la comparaison, l'\u00e9galit\u00e9 stricte effectuera la m\u00eame comparaison mais sans conversion pr\u00e9alable (elle renverra toujours false si les types des deux valeurs compar\u00e9es sont diff\u00e9rents), enfin Object.is()
se comportera comme l'\u00e9galit\u00e9 stricte sauf pour les valeurs NaN
, -0
et +0
: pour Object.is()
, -0
et +0
seront diff\u00e9rents mais on aura Object.is(NaN, NaN)
qui sera true
. (G\u00e9n\u00e9ralement, quand on compare NaN
avec NaN
en utilisant l'\u00e9galit\u00e9 stricte ou l'\u00e9galit\u00e9 faible, cela donne false
afin de respecter la norme IEEE 754.). On notera que pour ces trois op\u00e9rations, la comparaison s'effectue sur les valeurs des \u00e9l\u00e9ments qu'on compare, aucune de ces op\u00e9rations ne permet de comparer la structure des param\u00e8tres. Pour des objets non primitifs, x
et y
qui ont la m\u00eame structure mais qui sont des objets distincs, chacune des op\u00e9rations pr\u00e9sent\u00e9es ci-avant sera \u00e9valu\u00e9e \u00e0 false
.", "localization_tags": [], "locale": "fr", "last_edit": "2016-05-17T05:30:57", "review_tags": []}, {"uuid": "81ca6149-2512-4456-b919-847ef8c1a00d", "title": "\u7b49\u4fa1\u6027\u306e\u6bd4\u8f03\u3068\u305d\u306e\u4f7f\u3044\u3069\u3053\u308d", "url": "/ja/docs/Web/JavaScript/Equality_comparisons_and_when_to_use_them", "tags": ["SameValueZero", "Guide", "Equality", "\u8981\u66f4\u65b0", "Sameness", "JavaScript", "Intermediate", "Comparison"], "summary": "\u624b\u77ed\u306b\u8a00\u3048\u3070\u3001\u4e8c\u91cd\u7b49\u53f7\u306f 2 \u3064\u306e\u5024\u3092\u6bd4\u8f03\u3059\u308b\u969b\u306b\u578b\u5909\u63db\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001\u4e09\u91cd\u7b49\u53f7\u306f\u578b\u5909\u63db\u3092\u305b\u305a\u306b\u540c\u3058\u6bd4\u8f03\u3092\u5b9f\u884c\u3057\u307e\u3059 (\u578b\u304c\u7570\u306a\u308b\u5834\u5408\u306f\u5e38\u306b false \u3092\u8fd4\u3057\u307e\u3059)\u3002\u307e\u305f\u3001Object.is
\u306e\u52d5\u4f5c\u306f\u4e09\u91cd\u7b49\u53f7\u3068\u540c\u3058\u3067\u3059\u304c\u3001NaN
\u3001-0
\u3001+0
\u306e\u6271\u3044\u304c\u7279\u6b8a\u3067\u3059\u3002-0
\u3068 +0
\u306f\u7570\u306a\u308b\u5024\u306b\u306a\u308a\u3001Object.is(NaN, NaN)
\u306f true
\u306b\u306a\u308a\u307e\u3059 (IEEE 754 \u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u901a\u5e38\u306f NaN
\u3068 NaN
\u3092\u6bd4\u8f03\u3059\u308b\u3068 (\u4e8c\u91cd\u7b49\u53f7\u3001\u4e09\u91cd\u7b49\u53f7\u306e\u3069\u3061\u3089\u3067\u3082) false
\u306b\u306a\u308a\u307e\u3059)\u3002\u3053\u308c\u3089\u306e\u9055\u3044\u306f\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u5024\u306e\u6271\u3044\u306b\u95a2\u3059\u308b\u3053\u3068\u3060\u3068\u3044\u3046\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3044\u305a\u308c\u3082\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u69cb\u9020\u7684\u30fb\u6982\u5ff5\u7684\u306b\u4f3c\u3066\u3044\u308b\u304b\u306f\u6bd4\u8f03\u3057\u307e\u305b\u3093\u3002\u975e\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 x \u3068 y \u306f\u3001 \u69cb\u9020\u304c\u540c\u3058\u3067\u3082\u5225\u500b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308b\u9650\u308a\u3001 \u4e0a\u8a18\u306e\u3044\u305a\u308c\u306e\u5f62\u5f0f\u3067\u3082 false \u306b\u306a\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-08-08T03:53:24", "review_tags": ["editorial"]}, {"uuid": "143222b0-8392-469b-8f6c-5711b4a90982", "title": "Vergleiche auf Gleichheit und deren Verwendung", "url": "/de/docs/Web/JavaScript/Vergleiche_auf_Gleichheit_und_deren_Verwendung", "tags": [], "summary": "Kurz gesagt nimmt double equals eine Typkonvertierung der Operanden vor, bevor der Vergleich der Werte gemacht wird. Bei triple equals werden die Werte ohne vorherige Typkonvertierung miteinander verglichen. Wenn sich die Datentypen der beiden Operanden unterscheiden liefert triple equals immer false
zur\u00fcck. Object.is
verh\u00e4lt sich wie triple equals und bietet dar\u00fcber hinaus eine spezielle Behandlung f\u00fcr NaN
und -0
und +0
an. -0
und +0
sind f\u00fcr Object.is
ungleich w\u00e4hrend Object.is(NaN, NaN) true
ist. Laut IEEE 754 ergibt ein Vergleich von zwei NaN
mit double equals oder triple equals false
. Diese drei Operationen unterscheiden sich ihrere Behandlung von primitiven Datentypen. Es wird nicht gepr\u00fcft, ob die beiden Operanden konzeptionell diesselbe Struktur besitzen. F\u00fcr die nichtprimitiven Objekte x und y, welche diesselbe Struktur besitzen aber zwei unterschiedliche Objekte sind, ergeben die drei Operationen false
.", "localization_tags": [], "locale": "de", "last_edit": "2015-02-14T12:06:00", "review_tags": []}, {"uuid": "61a22109-9ac4-4e65-8248-6bdcd81204e3", "title": "Compara\u00e7\u00f5es de igualdade e uniformidade", "url": "/pt-BR/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": [], "summary": "Em resumo, dois iguais ir\u00e1 realizar uma convers\u00e3o de tipo ao comparar duas coisas; tr\u00eas iguais ir\u00e1 fazer a mesma compara\u00e7\u00e3o, sem convers\u00e3o de tipo (simplesmente retornando false se os tipos forem diferentes); e Object.is
ir\u00e1 se comportar da mesma forma que tr\u00eas iguais, mas com tratamento especial para NaN
e -0
e +0
de modo que os dois \u00faltimos n\u00e3o s\u00e3o referidos como sendo o mesmo, enquanto Object.is(NaN, NaN)
ser\u00e1 true
. (Comparando NaN
com NaN
ordinariamente - ou seja, usando tanto iguais duplo ou iguais triplo - avalia como false
, porque IEEE 754 diz isso.) Note que a distin\u00e7\u00e3o entre todos eles t\u00eam a ver com seu manuseio dos primitivos; nenhum deles compara se os par\u00e2metros s\u00e3o conceitualmente semelhante em estrutura. Para qualquer objetos n\u00e3o-primitivo x e y que t\u00eam a mesma estrutura, mas s\u00e3o objetos distintos entre si, todas as formas acima ser\u00e1 avaliada como falsa.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-05-14T14:38:27", "review_tags": []}, {"uuid": "f5e92ae6-28b1-4613-ac55-bdcbb0ad8734", "title": "Equality comparisons and sameness", "url": "/nl/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["Gelijk", "Vergelijking", "JavaScript"], "summary": "Briefly, double equals will perform a type conversion when comparing two things; triple equals will do the same comparison without type conversion (by simply always returning false if the types differ); and Object.is
will behave the same way as triple equals, but with special handling for NaN
and -0
and +0
so that the last two are not said to be the same, while Object.is(NaN, NaN)
will be true
. (Comparing NaN
with NaN
ordinarily\u2014i.e., using either double equals or triple equals\u2014evaluates to false
, because IEEE 754 says so.) Do note that the distinction between these all have to do with their handling of primitives; none of them compares whether the parameters are conceptually similar in structure. For any non-primitive objects x and y which have the same structure but are distinct objects themselves, all of the above forms will evaluate to false.", "localization_tags": ["inprogress"], "locale": "nl", "last_edit": "2015-09-11T03:40:00", "review_tags": []}, {"uuid": "fae08e78-4f6f-4d8a-a7b7-4ae27b2263d3", "title": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f", "url": "/ru/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["\u0421\u0440\u0435\u0434\u043d\u0438\u0439", "\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435", "\u0420\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e"], "summary": "\u0412 \u043e\u0431\u0449\u0438\u0445 \u0447\u0435\u0440\u0442\u0430\u0445, \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u043b\u0438\u0447\u0438\u043d \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432; \u0442\u0440\u043e\u0439\u043d\u043e\u0435 \u0440\u0430\u0432\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f (\u0435\u0441\u043b\u0438 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u0432\u0435\u0440\u043d\u0435\u0442 false
, \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f); \u043d\u0443 \u0438 Object.is
\u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0442\u0440\u043e\u0439\u043d\u043e\u0435 \u0440\u0430\u0432\u043d\u043e, \u043d\u043e \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0434\u043b\u044f NaN
, -0
\u0438 +0
, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u00a0false
\u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438\u00a0 -0
\u0438 +0
, \u0438 true
\u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 Object.is(NaN, NaN)
. (\u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0434\u0432\u043e\u0439\u043d\u043e\u0435 \u0438\u043b\u0438 \u0442\u0440\u043e\u0439\u043d\u043e\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u0432\u0435\u0440\u043d\u0443\u0442 false
\u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 IEEE 754.) \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u044b \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432. \u0414\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u043d\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 x
\u0438 y
, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0434\u0432\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 x
\u0438 y
\u043d\u0435 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0431\u044a\u0435\u043a\u0442), \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u043d\u0443\u0442 false
.", "localization_tags": [], "locale": "ru", "last_edit": "2016-01-01T05:43:05", "review_tags": ["editorial"]}, {"uuid": "7a92abf3-0a32-461b-9b8b-363f6f6fd7cc", "title": "Comparadores de igualdad e identidad", "url": "/es/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["JavaScript", "Intermedio", "SameValue", "SameValueZero", "igualdad", "Comparaci\u00f3n", "Identidad"], "summary": "Explic\u00e1ndolo de manera concisa, un doble igual lleva a cabo una conversi\u00f3n de tipo (cast) cuando se comparan dos cosas; el triple igual hace lo mismo pero sin realizar ninguna conversi\u00f3n de tipo (cast) (simplemente devuelve falso si los tipos de los elementos a comparar son diferentes); Y Object.is funciona de la misma manera que el triple igual pero hace una gesti\u00f3n especial de NaN, -0 y +0 de tal manera que los dos \u00faltimo no son\u00a0 iguales mientras que Object.is(NaN, Nan) nos devolver\u00e1 true
. (Si comparamos NaN con NaN de manera ordinaria , por ejemplo usando el doble igual o el triple igual, nos devolver\u00e1 false
, ya que la especificaci\u00f3n IEEE 754 as\u00ed lo dice). Hay que darse cuenta de que la distinci\u00f3n entre todas estas posibilidades\u00a0 tiene que ver con c\u00f3mo se manejan los los tipos primitivos; ninguna de ellos compara si los par\u00e1metros son similares en relaci\u00f3n a su estructura. Para comparar dos objectos primitivos , x ey, que tengan la misma estructura pero que sean objetos diferentes entre ellos, todos los casos anteriormente descritos devolver\u00e1n false.", "localization_tags": [], "locale": "es", "last_edit": "2016-03-17T13:26:01", "review_tags": []}, {"uuid": "43bbc588-71b2-4360-bd77-c624c9b54d23", "title": "\uac19\uc74c \ube44\uad50 \ubc0f \ub611\uac19\uc74c", "url": "/ko/docs/Web/JavaScript/Equality_comparisons_and_sameness", "tags": ["SameValueZero", "SameValue", "Equality", "Sameness", "JavaScript", "Intermediate", "Comparison"], "summary": "\uac04\ub2e8\ud788 \ub9d0\ud574\uc11c, \uc774\uc911 \ub4f1\ud638\ub294 \ub450 \uac12\uc744 \ube44\uad50\ud560 \ub54c \ud615 \ubcc0\ud658(type conversion)\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. \ubc18\uba74\uc5d0 \uc0bc\uc911 \ub4f1\ud638\ub294 \ud615 \ubcc0\ud658 \uc5c6\uc774 \uac19\uc740 \ube44\uad50\ub97c \ud589\ud569\ub2c8\ub2e4 (\ud615\uc774 \ub2e4\ub978 \uacbd\uc6b0 \ub2e8\uc21c\ud558\uac8c \ud56d\uc0c1 false\ub97c \ubc18\ud658\ud558\uc5ec); \uadf8\ub9ac\uace0 Object.is
\ub294 \uc0bc\uc911 \ub4f1\ud638\uc640 \uac19\uc740 \uc2dd\uc73c\ub85c \ub3d9\uc791\ud558\uc9c0\ub9cc, NaN
\ubc0f -0
\uacfc +0
(\uc911 \ub9c8\uc9c0\ub9c9 \ub458\uc740 \uac19\ub2e4\uace0 \ud558\uc9c0 \uc54a\uae30 \uc704\ud55c)\uc5d0 \ub300\ud55c \ud2b9\ubcc4 \ucc98\ub9ac\ub85c \uc778\ud574, Object.is(NaN, NaN)
\ub294 true
\uac00 \ub429\ub2c8\ub2e4. (\ubcf4\ud1b5 NaN
\uacfc NaN
\uc744 \ube44\uad50\ud558\uba74\u2014\uc989, \uc774\uc911 \ub4f1\ud638 \ub610\ub294 \uc0bc\uc911 \ub4f1\ud638\ub97c \uc0ac\uc6a9\ud558\uc5ec\u2014false
\ub85c \ud3c9\uac00\ud569\ub2c8\ub2e4, IEEE 754 \ud45c\uc900\uc774 \uadf8\ub807\ub2e4 \ud558\ub2c8\uae4c.) \uc774\ub4e4 \uc0ac\uc774\uc758 \uad6c\ubcc4\uc740 \ubaa8\ub450 \uc6d0\uc2dc\ud615(primitive) \uc790\uc2e0\uc758 \ucc98\ub9ac\ub85c \ud574\uc57c \ud568\uc744 \uc8fc\uc758\ud558\uc138\uc694. \uc989 \uadf8\ub4e4 \uc911 \uc544\ubb34\ub3c4 \ub9e4\uac1c\ubcc0\uc218(parameter)\uac00 \uac1c\ub150\uc0c1 \uad6c\uc870\uac00 \ube44\uc2b7\ud55c \uc9c0 \uc5ec\ubd80\ub97c \ube44\uad50\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uad6c\uc870\uac00 \uac19\uc9c0\ub9cc \uadf8\ub4e4 \uc2a4\uc2a4\ub85c \ubcc4\uac1c \uac1d\uccb4\uc778 \ube44\uc6d0\uc2dc\ud615 \uac1d\uccb4 x \ubc0f y\uc5d0 \ub300\ud574, \uc704 \ud615\ud0dc(form) \ubaa8\ub450 false\ub85c \ud3c9\uac00\ud569\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2016-05-29T09:06:36", "review_tags": []}], "modified": "2016-08-25T00:42:34", "label": "JavaScript \u4e2d\u7684\u76f8\u7b49\u6027\u5224\u65ad", "localization_tags": [], "locale": "zh-CN", "id": 127249, "last_edit": "2016-06-04T10:02:14", "summary": "\u7b80\u5355\u5730\u8bf4\uff0c\u4e24\u7b49\u53f7\u5224\u7b49\u4f1a\u5728\u6bd4\u8f83\u65f6\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\uff1b\u4e09\u7b49\u53f7\u5224\u7b49\u4e0d\u4f1a\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\uff08\u5982\u679c\u7c7b\u578b\u4e0d\u540c\u4f1a\u76f4\u63a5\u8fd4\u56de false \uff09\uff1b Object.is
\u5728\u4e09\u7b49\u53f7\u5224\u7b49\u7684\u57fa\u7840\u4e0a\u7279\u522b\u5904\u7406\u4e86 NaN
\u3001 -0
\u548c +0
\uff0c\u4fdd\u8bc1 -0 \u548c +0 \u4e0d\u518d\u76f8\u540c\uff0c\u4f46 Object.is(NaN, NaN)
\u4f1a\u8fd4\u56de true
\u3002\uff08\u50cf\u5176\u4ed6\u6570\u503c\u4e00\u6837\u6bd4\u8f83 NaN \u2014\u2014\u7531\u4e8e IEEE 754 \u7684\u89c4\u8303\uff0c\u65e0\u8bba\u4f7f\u7528\u53cc\u7b49\u53f7\u6216\u4e09\u7b49\u53f7\uff0c\u6bd4\u8f83 NaN \u90fd\u4f1a\u5f97\u5230 false \uff09\u4f46\u8bf7\u6ce8\u610f\uff0c\u6b64\u5916\uff0c\u8fd9\u4e09\u4e2a\u8fd0\u7b97\u7b26\u7684\u539f\u8bed\u4e2d\uff0c\u6ca1\u6709\u4e00\u4e2a\u4f1a\u6bd4\u8f83\u4e24\u4e2a\u53d8\u91cf\u662f\u5426\u7ed3\u6784\u4e0a\u6982\u5ff5\u7c7b\u4f3c\u3002\u5bf9\u4e8e\u4efb\u610f\u4e24\u4e2a\u4e0d\u540c\u7684\u975e\u539f\u59cb\u5bf9\u8c61\uff0c\u5373\u4fbf\u4ed6\u4eec\u6709\u76f8\u540c\u7684\u7ed3\u6784\uff0c \u4ee5\u4e0a\u4e09\u4e2a\u8fd0\u7b97\u7b26\u90fd\u4f1a\u8ba1\u7b97\u5f97\u5230 false \u3002", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u4e25\u683c\u76f8\u7b49", "title": "\u4e25\u683c\u76f8\u7b49 "}, {"id": "\u975e\u4e25\u683c\u76f8\u7b49", "title": "\u975e\u4e25\u683c\u76f8\u7b49 "}, {"id": "\u540c\u503c\u76f8\u7b49", "title": "\u540c\u503c\u76f8\u7b49"}, {"id": "\u96f6\u503c\u76f8\u7b49", "title": "\u96f6\u503c\u76f8\u7b49"}, {"id": "\u89c4\u8303\u4e2d\u7684\u76f8\u7b49\u3001\u4e25\u683c\u76f8\u7b49\u4ee5\u53ca\u540c\u503c\u76f8\u7b49", "title": "\u89c4\u8303\u4e2d\u7684\u76f8\u7b49\u3001\u4e25\u683c\u76f8\u7b49\u4ee5\u53ca\u540c\u503c\u76f8\u7b49"}, {"id": "\u7406\u89e3\u76f8\u7b49\u6bd4\u8f83\u7684\u6a21\u578b", "title": "\u7406\u89e3\u76f8\u7b49\u6bd4\u8f83\u7684\u6a21\u578b"}, {"id": "\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528_Object.is_\u6216\u662f\u4e09\u7b49", "title": "\u4ec0\u4e48\u65f6\u5019\u4f7f\u7528 "}, {"id": "\u53c2\u89c1", "title": "\u53c2\u89c1"}], "slug": "Web/JavaScript/Equality_comparisons_and_sameness", "review_tags": []}