跳到主要內容

執行時支援:TypeScript To JavaScript

將 TypeScript 程式碼轉換為純 JavaScript,以便在任何環境中使用。

Code is converted on the server. No type-checking, execution or dependency bundling is performed. JSX is preserved.

Load an example (replaces your input)

TypeScript

JavaScript

轉換工具使用方法

  1. 將原始資料貼上到輸入區,或選擇本機檔案。
  2. 檢查可用設定,確認生成結果是否存在錯誤。
  3. 複製結果,在專案中驗證後再使用。

功能與限制

轉換在瀏覽器本機完成,輸入內容不會上傳。輸入可能在同一分頁的工具之間保留,共用裝置用完後請清空。