TypeScript的 throw 關鍵字,可以讓JavaScript程式在任意位置中斷執行,並拋出錯誤訊息。 ... throw "I am an error!"; ... 用法如下: ...
確定! 回上一頁