由於TS 對於any 型別不會做任何檢查,因此,任何資料型別的屬性或方法都會通過。 let value: any; value.length; // 求字串長度,OK value.trim(); // 去除前後空格,OK ...
確定! 回上一頁