{"json_modified": "2015-04-17T05:29:50.934641", "slug": "Web/JavaScript/Reference/Global_Objects/Date/toLocaleString", "tags": [], "locale": "zh-CN", "title": "Date.prototype.toLocaleString()", "translations": [{"title": "Date.prototype.toLocaleString()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString", "tags": ["Internationalization", "Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "The toLocaleString()
method returns a string with a language sensitive representation of this date. The new locales
and options
arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales
and options
arguments, the locale used and the form of the string returned are entirely implementation dependent.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-31T01:51:50", "review_tags": []}, {"title": "toLocaleString", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Date/toLocaleString", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Wszystkie_kategorie"], "summary": "", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:36", "review_tags": []}, {"title": "Date.prototype.toLocaleString()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/toLocaleString", "tags": ["Internationalization", "Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "La m\u00e9thode toLocaleString()
renvoie une chaine de caract\u00e8res repr\u00e9sentant la date selon une locale. Les arguments locales
et options
permettent aux applications de d\u00e9finir le langage \u00e0 utiliser pour les conventions de format et permettent de personnaliser le comportement de la fonction. Les anciennes impl\u00e9mentations ignorent ces arguments, la locale utilis\u00e9e et le format de la chaine d\u00e9pendent uniquement de l'impl\u00e9mentation.", "localization_tags": [], "locale": "fr", "last_edit": "2015-01-17T14:44:52", "review_tags": []}, {"title": "Date.prototype.toLocaleString()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString", "tags": ["Internationalization", "Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 toLocaleString()
\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u044f\u0437\u044b\u043a\u043e-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0434\u0430\u0442\u044b. \u041d\u043e\u0432\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b locales
\u0438 options
\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u044f\u0437\u044b\u043a, \u0447\u044c\u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430. \u0412 \u0441\u0442\u0430\u0440\u044b\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0445, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b locales
\u0438 options
, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043b\u043e\u043a\u0430\u043b\u044c \u0438 \u0444\u043e\u0440\u043c\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0451\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-31T03:30:52", "review_tags": []}], "modified": "2015-04-17T05:29:49", "label": "Date.prototype.toLocaleString()", "localization_tags": ["inprogress"], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString", "last_edit": "2015-04-17T05:29:43", "summary": "The toLocaleString()
\u00a0\u65b9\u6cd5\u8fd4\u56de\u8be5\u65e5\u671f\u5bf9\u8c61\u7684\u5b57\u7b26\u4e32\uff0c\u8be5\u5b57\u7b26\u4e32\u683c\u5f0f\u56e0\u4e0d\u540c\u8bed\u8a00\u800c\u4e0d\u540c\u3002\u65b0\u589e\u7684\u53c2\u6570\u00a0locales
\u00a0\u548c\u00a0options
\u00a0\u4f7f\u7a0b\u5e8f\u80fd\u591f\u6307\u5b9a\u4f7f\u7528\u54ea\u79cd\u8bed\u8a00\u683c\u5f0f\u5316\u89c4\u5219\uff0c\u5141\u8bb8\u5b9a\u5236\u8be5\u65b9\u6cd5\u7684\u8868\u73b0\uff08behavior\uff09\u3002\u5728\u65e7\u7248\u672c\u6d4f\u89c8\u5668\u4e2d\uff0c\u00a0locales
\u00a0\u548c\u00a0options
\u00a0\u53c2\u6570\u88ab\u5ffd\u7565\uff0c\u4f7f\u7528\u7684\u8bed\u8a00\u73af\u5883\u548c\u8fd4\u56de\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u662f\u5404\u81ea\u72ec\u7acb\u5b9e\u73b0\u7684\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Date \u5c5e\u6027 Date.prototype \u65b9\u6cd5 Date.UTC() Date.now() Date.parse() Date.prototype.getDate() Date.prototype.getDay() Date.prototype.getFullYear() Date.prototype.getHours() Date.prototype.getMilliseconds() Date.prototype.getMinutes() Date.prototype.getMonth() Date.prototype.getSeconds() Date.prototype.getTime() Date.prototype.getTimezoneOffset() Date.prototype.getUTCDate() Date.prototype.getUTCDay() Date.prototype.getUTCFullYear() Date.prototype.getUTCHours() Date.prototype.getUTCMilliseconds() Date.prototype.getUTCMinutes() Date.prototype.getUTCMonth() Date.prototype.getUTCSeconds() Date.prototype.getYear() Date.prototype.setDate() Date.prototype.setFullYear() Date.prototype.setHours() Date.prototype.setMilliseconds() Date.prototype.setMinutes() Date.prototype.setMonth() Date.prototype.setSeconds() Date.prototype.setTime() Date.prototype.setUTCDate() [Translate] Date.prototype.setUTCFullYear() [Translate] Date.prototype.setUTCHours() [Translate] Date.prototype.setUTCMilliseconds() [Translate] Date.prototype.setUTCMinutes() [Translate] Date.prototype.setUTCMonth() [Translate] Date.prototype.setUTCSeconds() [Translate] Date.prototype.setYear() Date.prototype.toDateString() Date.prototype.toGMTString() Date.prototype.toISOString() Date.prototype.toJSON() Date.prototype.toLocaleDateString() Date.prototype.toLocaleFormat() [Translate] Date.prototype.toLocaleString() Date.prototype.toLocaleTimeString() Date.prototype.toSource() [Translate] Date.prototype.toString() Date.prototype.toTimeString() Date.prototype.toUTCString() Date.prototype.valueOf() \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity caller Function.displayName [Translate] length name prototype \u65b9\u6cd5 Function.prototype.apply() bind call isGenerator Function.toSource Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] __parent__ __proto__ constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() isPrototypeOf propertyIsEnumerable Object.prototype.toLocaleString() Object.toSource Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() watch"}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": "Parameters", "title": "\u53c2\u6570"}, {"id": "Examples", "title": "\u4f8b\u5b50"}, {"id": "Example:_Using_toLocaleString", "title": "\u4f8b\u5b50\uff1a\u4f7f\u7528 toLocaleString"}, {"id": "Example:_Checking_for_support_for_locales_and_options_arguments", "title": "\u4f8b\u5b50\uff1a\u68c0\u6d4b locales \u548c options \u53c2\u6570\u652f\u6301\u60c5\u51b5"}, {"id": "Example:_Using_locales", "title": "\u4f8b\u5b50\uff1a\u4f7f\u7528 locales \u53c2\u6570"}, {"id": "Example:_Using_options", "title": "\u4f8b\u5b50\uff1a\u4f7f\u7528 options \u53c2\u6570"}, {"id": "Performance", "title": "\u6027\u80fd"}, {"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": 123053, "review_tags": []}