indexOf() 搜尋第一個符合的字,回傳index,若無則回傳-1 var str = "Please locate where 'locate' occurs!"; var pos = str.indexOf("locate");.
確定! 回上一頁