擷取 子字串substring(start, n), s = "Hi, Good Morning! s.substring(0, s.indexOf(' '))) => "Hi,", 字串位置從0 到空白字元所在位置的子字串為"Hi,“.
確定! 回上一頁