let strToSearch = 'a-really-long-hyphenated-string'; // 檢驗字串是否以某字串開頭 strToSearch.startsWith('a-really'); // ES6: startsWith
確定! 回上一頁