Archive for JavaScript

String中的 indexOf 使用

Tips and Notes

Note: The indexOf() method is case sensitive!

Note: This method returns -1 if the string value to search for never occurs.

參照:

http://www.w3schools.com/jsref/jsref_IndexOf.asp

發表迴響

Follow

Get every new post delivered to your Inbox.