indexOf (":") returns 4 , so we are obtaining the string from index 0 (inclusive) to 4 (exclusive). Using regex. str = /(.+): ...
確定! 回上一頁