如果要檢查字串或是陣列內是否有子字串的存在你可以這樣做:. var someText = 'javascript rules'; if (someText.indexOf('javascript') !==
確定! 回上一頁