/^a-really/.test(strToSearch); // test string w/ regular expression strToSearch.indexOf('a-really') === 0; // indexOf,回傳在字串中找到目標 ...
確定! 回上一頁