📌  相关文章
📜  访问器仅在面向 ECMAScript 5 及更高版本时可用. - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:22.633000             🧑  作者: Mango

代码示例1
# If you're getting the 
    "script.ts:9:8 - error TS1056: Accessors are only available when targeting ECMAScript 5 and higher."
# in typescript compliation you need to change your target for compiling in cmd
# like:
tsc -t es5 script.ts
# or
tsc -target es6 script.ts