{"json_modified": "2015-04-18T00:37:41.365366", "slug": "Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "locale": "zh-CN", "title": "\u6309\u4f4d\u64cd\u4f5c\u7b26", "translations": [{"title": "Bitwise operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["Operator", "JavaScript"], "summary": "Bitwise operators treat their operands as a sequence of 32 bits (zeroes and ones), rather than as decimal, hexadecimal, or octal numbers
. For example, the decimal number nine has a binary representation of 1001. Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T09:46:38", "review_tags": []}, {"title": "\u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438", "url": "/ru/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", "JavaScript"], "summary": "\u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430\u043c\u0438 \u043a\u0430\u043a \u0441 32-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043d\u0443\u043b\u0435\u0439 \u0438 \u0435\u0434\u0438\u043d\u0438\u0446, \u0430 \u043d\u0435 \u043a\u0430\u043a \u0441 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c\u0438, \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u044b\u043c\u0438 \u0438\u043b\u0438 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0438\u0440\u0438\u0447\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 9 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a 1001. \u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0438\u0441\u043b\u0430, \u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0430 JavaScript.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2014-11-24T12:27:50", "review_tags": []}, {"title": "Op\u00e9rateurs binaires", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_binaires", "tags": ["R\u00e9f\u00e9rence", "Reference", "R\u00e9ference", "Operator", "JavaScript"], "summary": "Les op\u00e9rateurs binaires traitent leurs op\u00e9randes comme des s\u00e9quences de 32 bits (des z\u00e9ros et des uns), plut\u00f4t que comme des nombres d\u00e9cimaux, hexad\u00e9cimaux ou octaux. Par exemple, le nombre d\u00e9cimal neuf a une repr\u00e9sentation binaire de 1001. Les op\u00e9rateurs binaires traitent de telles repr\u00e9sentations binaires, mais renvoient des valeurs num\u00e9riques JavaScript standards.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-11T13:43:52", "review_tags": []}, {"title": "\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "summary": "\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u3067\u306f\u305d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092 10 \u9032\u6570\u3084 16 \u9032\u6570\u3084 8 \u9032\u6570\u306e\u6570\u5024
\u3067\u306f\u306a\u304f\u300132 \u30d3\u30c3\u30c8\u306e\u96c6\u5408\uff080 \u3068 1\uff09\u3068\u3057\u3066 \u6271\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u300110 \u9032\u6570\u306e 9 \u306e 2 \u9032\u8868\u73fe\u306f 1001 \u3067\u3059\u3002\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u306f\u3053\u306e\u3088\u3046\u306b 2 \u9032\u8868\u73fe\u306b\u3057\u305f\u4e0a\u3067\u6f14\u7b97\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u6a19\u6e96\u306e JavaScript \u306e\u6570\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-15T05:45:50", "review_tags": []}, {"title": "Bitwise Operators", "url": "/ko/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "summary": "\ube44\ud2b8 \uc5f0\uc0b0\uc790\ub294 \ud53c\uc5f0\uc0b0\uc790\ub97c 10\uc9c4\uc218\ub098 16\uc9c4\uc218\ub098 8\uc9c4\uc218\uc640 \uac19\uc740 \uc22b\uc790\uac00 \uc544\ub2c8\ub77c, 32\ube44\ud2b8(0\uacfc 1)\uc758 \uc9d1\ud569\uc73c\ub85c \ud45c\ud604\ud569\ub2c8\ub2e4. \uc608\ub97c\ub4e4\uc5b4, 10\uc9c4\uc218 9\uc758 2\uc9c4\uc218 \ud45c\uae30\ubc95\uc740 1001\uc785\ub2c8\ub2e4. \ube44\ud2b8 \uc5f0\uc0b0\uc790\ub294 \uc774\ub807\ub4ef 2\uc9c4\uc218\ub85c \ud45c\ud604\ud55c \ub4a4\uc5d0 \uacc4\uc0b0\uc744 \ud558\uc9c0\ub9cc, \ud45c\uc900 JavaScript \uac12\uc740 \ub9ac\ud134\uc2dc\ud0b5\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2014-07-06T09:18:18", "review_tags": []}, {"title": "Operadors de bits", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Bitwise_Operators", "tags": [], "summary": "Els operadors de bits tracten els seus operands com una seq\u00fc\u00e8ncia de 32 bits (uns i zeros), en comptes de operar-los com a nombres decimals, hexadecimals o octals. Per exemple, la representaci\u00f3 bin\u00e0ria del \u00e9s nombre decimal nou (9) 1001. Els operadors de bits treballen amb aquesta representaci\u00f3 bin\u00e0ria per\u00f2 el resultat que retorna l'operaci\u00f3 sempre \u00e9s un nombre standard de JavaScript.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:21", "review_tags": ["editorial"]}], "modified": "2015-04-18T00:37:38", "label": "\u6309\u4f4d\u64cd\u4f5c\u7b26", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "last_edit": "2015-02-27T00:43:03", "summary": "\u6309\u4f4d\u64cd\u4f5c\u7b26\uff08Bitwise operators\uff09\u00a0\u5c06\u5176\u64cd\u4f5c\u6570\uff08operands\uff09\u5f53\u4f5c32\u4f4d\u7684\u6bd4\u7279\u5e8f\u5217\uff08\u75310\u548c1\u7ec4\u6210\uff09\uff0c\u800c\u4e0d\u662f\u5341\u8fdb\u5236\u3001\u5341\u516d\u8fdb\u5236\u6216\u516b\u8fdb\u5236\u6570\u503c\u3002\u4f8b\u5982\uff0c\u5341\u8fdb\u5236\u65709\uff0c\u7528\u4e8c\u8fdb\u5236\u8868\u793a\u5219\u4e3a1001\u3002\u6309\u4f4d\u64cd\u4f5c\u7b26\u64cd\u4f5c\u6570\u5b57\u7684\u4e8c\u8fdb\u5236\u5f62\u5f0f\uff0c\u4f46\u662f\u8fd4\u56de\u503c\u4f9d\u7136\u662f\u6807\u51c6\u7684JavaScript\u6570\u503c\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6559\u7a0b: JavaScript \u6307\u5357 Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming \u5feb\u901f\u5165\u95e8 JavaScript \u57fa\u7840\u77e5\u8bc6 JavaScript \u77e5\u8bc6\u6982\u8981 Javascript \u9762\u5411\u5bf9\u8c61\u7f16\u7a0b \u4e2d\u7ea7\u6559\u7a0b \u6df1\u5165 JavaScript JavaScript \u6570\u636e\u7ed3\u6784 \u5982\u4f55\u6b63\u786e\u5224\u65ad\u76f8\u7b49\u6027 Closures \u9ad8\u7ea7 \u7ee7\u627f\u548c\u539f\u578b\u94fe \u4e25\u683c\u6a21\u5f0f JavaScript \u7c7b\u578b\u5316\u6570\u7ec4 \u5185\u5b58\u7ba1\u7406 Concurrency model and Event Loop \u5f15\u7528: \u5185\u7f6e\u5bf9\u8c61 JavaScript \u6807\u51c6\u5e93 Array ArrayBuffer Boolean DataView [Translate] Date Error EvalError Float32Array [Translate] Float64Array [Translate] Function Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array [Translate] Int32Array [Translate] Int8Array [Translate] InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map Math NaN Number Object ParallelArray Promise Proxy RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp Set StopIteration [Translate] String Symbol SyntaxError TypeError [Translate] TypedArray URIError [Translate] Uint16Array [Translate] Uint32Array Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap WeakSet decodeURI decodeURIComponent() encodeURI() encodeURIComponent() escape() eval() isFinite() isNaN() null parseFloat parseInt undefined unescape() [Translate] uneval() [Translate] \u8868\u8fbe\u5f0f\u548c\u8fd0\u7b97\u7b26 \u8fd0\u7b97\u7b26 \u7b97\u672f\u8fd0\u7b97\u7b26 \u6570\u7ec4\u63a8\u5bfc\u5f0f \u8d4b\u503c\u8fd0\u7b97\u7b26 \u6309\u4f4d\u64cd\u4f5c\u7b26 \u9017\u53f7\u64cd\u4f5c\u7b26 Comparison operators [Translate] Conditional (ternary) Operator [Translate] \u89e3\u6784\u8d4b\u503c\uff08Destructuring assignment\uff09 Expression closures [Translate] Generator comprehensions [Translate] \u5706\u62ec\u53f7\u8fd0\u7b97\u7b26 Legacy generator function expression [Translate] \u903b\u8f91\u8fd0\u7b97\u7b26 Object initializer [Translate] \u8fd0\u7b97\u7b26\u4f18\u5148\u7ea7 Property accessors [Translate] \u5c55\u5f00\u8fd0\u7b97\u7b26 class expression [Translate] delete \u51fd\u6570\u8868\u8fbe\u5f0f function* expression [Translate] in instanceof new\u8fd0\u7b97\u7b26 super this typeof void \u8fd0\u7b97\u7b26 yield yield* \u8bed\u53e5\u548c\u58f0\u660e Statements Legacy generator function [Translate] block break class [Translate] const continue debugger do...while empty export [Translate] for [Translate] for each...in for...in for...of function \u751f\u6210\u5668\uff08generator\uff09 if...else import [Translate] label let return switch throw try...catch [Translate] var while with \u51fd\u6570 \u51fd\u6570\u548c\u51fd\u6570\u4f5c\u7528\u57df arguments \u7bad\u5934\u51fd\u6570 \u9ed8\u8ba4\u53c2\u6570\u503c \u65b9\u6cd5\u7684\u5b9a\u4e49 \u5269\u4f59\u53c2\u6570 getter setter Classes Classes [Translate] constructor [Translate] extends [Translate] static [Translate] \u66f4\u591a \u8bcd\u6cd5\u6587\u6cd5 JavaScript \u6570\u636e\u7ed3\u6784 \u5c5e\u6027\u7684\u53ef\u679a\u4e3e\u6027\u548c\u6240\u6709\u6743 Iteration protocols \u4e25\u683c\u6a21\u5f0f \u5207\u6362\u5230\u4e25\u683c\u6a21\u5f0f \u6a21\u677f\u5b57\u7b26\u4e32 \u5df2\u5e9f\u5f03\u7684\u7279\u6027 New in JavaScript New in JavaScript Mozilla\u5bf9ECMAScript 5\u7684\u652f\u6301 Firefox \u4e2d ECMAScript 6 \u7684\u5b9e\u73b0\u60c5\u51b5 ECMAScript 7 support in Mozilla [Translate] Firefox JavaScript changelog [Translate] New in JavaScript 1.1 [Translate] New in JavaScript 1.2 [Translate] New in JavaScript 1.3 [Translate] New in JavaScript 1.4 [Translate] JavaScript 1.5 \u7684\u65b0\u7279\u6027 JavaScript 1.6 \u7684\u65b0\u7279\u6027 New in JavaScript 1.7 New in JavaScript 1.8 New in JavaScript 1.8.1 [Translate] JavaScript 1.8.5 \u7684\u65b0\u7279\u6027 \u6587\u6863: \u5e38\u7528\u5217\u8868 \u5168\u90e8\u9875\u9762\u7d22\u5f15 \u65b9\u6cd5\u7d22\u5f15 \u5c5e\u6027\u7d22\u5f15 \u62e5\u6709 \"JavaScript\" \u6807\u7b7e\u7684\u9875\u9762 \u8d21\u732e JavaScript \u6587\u6863\u7ffb\u8bd1\u72b6\u6001 MDN \u9879\u76ee"}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": ".E6.9C.89.E7.AC.A6.E5.8F.B732.E4.BD.8D.E6.95.B4.E6.95.B0", "title": "\u6709\u7b26\u53f732\u4f4d\u6574\u6570"}, {"id": ".E6.8C.89.E4.BD.8D.E9.80.BB.E8.BE.91.E6.93.8D.E4.BD.9C.E7.AC.A6", "title": "\u6309\u4f4d\u903b\u8f91\u64cd\u4f5c\u7b26"}, {"id": ".26_(.E6.8C.89.E4.BD.8D.E4.B8.8E)", "title": "& (\u6309\u4f4d\u4e0e)"}, {"id": ".7C_(.E6.8C.89.E4.BD.8D.E6.88.96)", "title": "| (\u6309\u4f4d\u6216)"}, {"id": ".5E_(.E6.8C.89.E4.BD.8D.E5.BC.82.E6.88.96)", "title": "^ (\u6309\u4f4d\u5f02\u6216)"}, {"id": ".7E_(.E6.8C.89.E4.BD.8D.E9.9D.9E)", "title": "~ (\u6309\u4f4d\u975e)"}, {"id": ".E6.8C.89.E4.BD.8D.E7.A7.BB.E5.8A.A8.E6.93.8D.E4.BD.9C.E7.AC.A6", "title": "\u6309\u4f4d\u79fb\u52a8\u64cd\u4f5c\u7b26"}, {"id": "<<_(.E5.B7.A6.E7.A7.BB)", "title": "<< (\u5de6\u79fb)"}, {"id": ">>_(.E6.9C.89.E7.AC.A6.E5.8F.B7.E5.8F.B3.E7.A7.BB)", "title": ">> (\u6709\u7b26\u53f7\u53f3\u79fb)"}, {"id": ">>>_(.E6.97.A0.E7.AC.A6.E5.8F.B7.E5.8F.B3.E7.A7.BB)", "title": ">>> (\u65e0\u7b26\u53f7\u53f3\u79fb)"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"id": ".E4.BE.8B.E5.AD.90.EF.BC.9A.E6.A0.87.E5.BF.97.E4.BD.8D.E4.B8.8E.E6.8E.A9.E7.A0.81", "title": "\u4f8b\u5b50\uff1a\u6807\u5fd7\u4f4d\u4e0e\u63a9\u7801"}, {"id": ".E8.BD.AC.E6.8D.A2.E7.89.87.E6.AE.B5", "title": "\u8f6c\u6362\u7247\u6bb5"}, {"id": ".E8.87.AA.E5.8A.A8.E5.8C.96.E6.8E.A9.E7.A0.81.E5.88.9B.E5.BB.BA", "title": "\u81ea\u52a8\u5316\u63a9\u7801\u521b\u5efa"}, {"id": ".E9.80.86.E7.AE.97.E6.B3.95.EF.BC.9A.E4.BB.8E.E6.8E.A9.E7.A0.81.E5.BE.97.E5.88.B0.E5.B8.83.E5.B0.94.E6.95.B0.E7.BB.84", "title": "\u9006\u7b97\u6cd5\uff1a\u4ece\u63a9\u7801\u5f97\u5230\u5e03\u5c14\u6570\u7ec4"}, {"id": ".E8.A7.84.E8.8C.83", "title": "\u89c4\u8303"}, {"id": ".E6.B5.8F.E8.A7.88.E5.99.A8.E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "See_also", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 132649, "review_tags": []}