{"json_modified": "2016-10-21T02:29:25.138193", "uuid": "2573f349-383c-4f0c-8191-8ab609ce96fc", "title": "switch", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/switch", "tags": [], "translations": [{"uuid": "6f82499f-7b30-47c8-8950-699b7e1dc8a0", "title": "switch", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Reference", "Statement", "Web", "JavaScript"], "summary": "The switch
statement evaluates an expression, matching the expression's value to a case
clause, and executes statements associated with that case.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-10-16T17:38:57", "review_tags": []}, {"uuid": "4aa45193-08d3-486f-9fd4-0ccfd0f1bce2", "title": "switch", "url": "/de/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Reference", "Statement", "JavaScript"], "summary": "Die\u00a0switch Anweisung\u00a0wertet einen Ausdruck aus. Diese Auswertung wird mit einer case Klausel verglichen und (bei \u00dcbereinstimmung)\u00a0die entsprechenden Anweisungen\u00a0ausgef\u00fchrt.", "localization_tags": [], "locale": "de", "last_edit": "2016-06-21T13:36:50", "review_tags": []}, {"uuid": "b034f942-3aeb-47c4-bde5-23e6057b0995", "title": "switch", "url": "/es/docs/Web/JavaScript/Referencia/Sentencias/switch", "tags": [], "summary": "La sentencia\u00a0switch\u00a0eval\u00faa una expresi\u00f3n, comparando la expresi\u00f3n con un conjunto de \u00a0valores\u00a0predefinidoes, y ejecuta comandos seg\u00fan el caso.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-11-19T16:10:19", "review_tags": []}, {"uuid": "097b7041-1b49-42e3-bb64-1b703d71630a", "title": "switch", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/switch", "tags": ["R\u00e9f\u00e9rence", "Instruction", "JavaScript"], "summary": "L'instruction switch
\u00e9value une expression et, selon le r\u00e9sultat obtenu et le cas associ\u00e9, ex\u00e9cute les instructions correspondantes.", "localization_tags": [], "locale": "fr", "last_edit": "2016-10-17T03:57:22", "review_tags": []}, {"uuid": "312e792b-a12b-434d-b379-659d960fed77", "title": "switch", "url": "/ja/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Reference", "Statement", "Web", "JavaScript"], "summary": "switch
\u6587\u306f\u5f0f\u3092\u8a55\u4fa1\u3057\u3001\u305d\u306e\u5f0f\u306e\u5024\u304c case
\u306e\u30e9\u30d9\u30eb\u3068\u4e00\u81f4\u3059\u308b\u306a\u3089\u3001\u305d\u306e case \u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u6587\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-05-21T10:01:45", "review_tags": []}, {"uuid": "2c10c05f-179d-4b8f-9057-197644bba966", "title": "switch", "url": "/ko/docs/Web/JavaScript/Reference/Statements/switch", "tags": [], "summary": "switch
\ubb38\uc740 \ud45c\ud604\uc2dd\uc758 \uac12\uc5d0 \ub530\ub77c, \uac01 case
\ubb38 \uc911 \uc77c\uce58\ud558\ub294 \uc704\uce58\uc758 \uad6c\ubb38\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2016-10-11T05:48:38", "review_tags": []}, {"uuid": "04e51488-91d7-47b0-94ed-4b38332187f6", "title": "switch", "url": "/pl/docs/Web/JavaScript/Referencje/Polecenia/switch", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "Por\u00f3wnuje wyra\u017cenie z danymi etykietami i wykonuje instrukcje z nimi powi\u0105zane.", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:19", "review_tags": []}, {"uuid": "2d028b64-85f6-4ecd-a013-b178db07cb31", "title": "switch", "url": "/pt-BR/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Instru\u00e7\u00e3o", "Refer\u00eancia", "Web", "JavaScript"], "summary": "Se a condi\u00e7\u00e3o for correspondida, o programa executa as instru\u00e7\u00f5es asssociadas. Se m\u00faltiplos casos corresponderem o valor, o primeiro caso que corresponder \u00e9 selecionado, mesmo se os casos n\u00e3o forem iguais entre si.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2016-02-14T20:08:55", "review_tags": []}, {"uuid": "2ac90183-79a3-44c2-a6c4-80d1ac17e32c", "title": "switch", "url": "/ru/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Statement", "JavaScript"], "summary": "\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f switch\u00a0\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u044f\u043c\u0438, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0451, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.", "localization_tags": [], "locale": "ru", "last_edit": "2016-08-06T10:57:12", "review_tags": []}], "modified": "2016-10-21T02:29:23", "label": "switch", "localization_tags": ["inprogress"], "locale": "zh-CN", "id": 132539, "last_edit": "2015-01-22T07:08:45", "summary": "switch\u8bed\u53e5\u5bf9\u4e00\u4e2a\u8868\u8fbe\u5f0f\u6c42\u503c\uff0c\u5c06\u7ed3\u679c\u4e0e case
\u5b50\u8bed\u53e5\u6bd4\u8f83\uff0c\u5982\u679c\u5339\u914d\uff0c\u5219\u4ece case \u5904\u7684\u8bed\u53e5\u5411\u4e0b\u6267\u884c\u3002", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u6982\u8ff0", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": "Description", "title": "\u63cf\u8ff0"}, {"id": "Examples", "title": "\u793a\u4f8b"}, {"id": "Example:_Using_switch", "title": "\u793a\u4f8b1\uff1a\u4f7f\u7528 "}, {"id": "What_happens_if_I_forgot_a_break", "title": "\u793a\u4f8b2\uff1a\u5982\u679c\u5fd8\u8bb0\u4e2d\u65ad(break)\u4f1a\u600e\u4e48\u6837\uff1f"}, {"id": "Methods_for_Multi-criteria_Case", "title": "\u793a\u4f8b\uff1a\u4f7f\u7528\u591a\u6761\u4ef6 case \u7684\u65b9\u6cd5"}, {"id": "\u65b9\u6cd5\u4e00", "title": "\u65b9\u6cd5\u4e00"}, {"id": "\u65b9\u6cd5\u4e8c", "title": "\u65b9\u6cd5\u4e8c"}, {"id": "\u89c4\u8303", "title": "\u89c4\u8303"}, {"id": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "See_also", "title": "\u76f8\u5173\u94fe\u63a5"}], "slug": "Web/JavaScript/Reference/Statements/switch", "review_tags": []}