JavaScript (7) – 字串處理與正規表達式

JavaScript (7) – 字串處理與正規表達式

瀏覽:945
日期:2024-07-24
屬性/函數 說明 範例 結果 constructor 傳回建構函數 "Hello".constructor function String() { [native code] } length 傳回長度 "Hello".length function String() { [native code] } prototype 傳回原型 "Hello".prototype undefined charAt() 傳回第 i 個字元 "Hello".charAt(1)...看更多