很簡單, JS 有提供給我們正規表達式,可以這樣寫: var text="A apple a day keeps the doctor away"; function hasApple(val){ return /apple/.test(text) ...
確定! 回上一頁