<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ecmascript on Commentary of Takao</title><link>https://takao.blog/zh-tw/tags/ecmascript/</link><description>Recent content in Ecmascript on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh-tw/tags/ecmascript/index.xml" rel="self" type="application/rss+xml"/><item><title>如何 Use Standard Decorators in TypeScript</title><link>https://takao.blog/zh-tw/web/typescript-5-decorations-adoption/</link><pubDate>Sat, 05 Jul 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/typescript-5-decorations-adoption/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/typescript-5-decorations-adoption-zh-tw.png" alt="Featured image of post 如何 Use Standard Decorators in TypeScript" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;In TypeScript, &lt;strong&gt;decorators&lt;/strong&gt; have long been a key feature, popularized by major frameworks like Angular, NestJS, and TypeORM to manage metadata and dependency injection.&lt;/p&gt;
&lt;p&gt;However, for years, decorators remained an experimental feature (requiring the &lt;code&gt;experimentalDecorators&lt;/code&gt; flag), relying on a legacy proposal that differed from the evolving ECMAScript (JavaScript) standard.&lt;/p&gt;
&lt;p&gt;With the release of TypeScript 5.0, &lt;strong&gt;official 支援 for the standard ECMAScript Decorators (Stage 3/4)&lt;/strong&gt; was introduced. This brings improved type safety and runtime consistency to the decorator syntax. This article explains how to write standard decorators in modern TypeScript.&lt;/p&gt;</description></item><item><title>ES2024 新功能：JavaScript 的新功能</title><link>https://takao.blog/zh-tw/web/es2024-new-features/</link><pubDate>Tue, 12 Mar 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/es2024-new-features/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/es2024-new-features-zh-tw.png" alt="Featured image of post ES2024 新功能：JavaScript 的新功能" /&gt;&lt;p&gt;ECMAScript 2024 (ES15) 為 JavaScript 引進了幾個期待已久的功能。本文透過實際範例和採用時間表指南介紹了新功能。&lt;/p&gt;
&lt;h2 id="陣列分組objectgroupby-和-mapgroupby"&gt;陣列分組：Object.groupBy 和 Map.groupBy
&lt;/h2&gt;&lt;p&gt;最受歡迎的 JavaScript 功能之一終於到來了。 &lt;code&gt;Object.groupBy&lt;/code&gt; 和 &lt;code&gt;Map.groupBy&lt;/code&gt; 根據回呼將陣列元素分割為群組：&lt;/p&gt;</description></item></channel></rss>