替换字符串或正则匹配到的内容。
string.replace(search, replacement)
search
replacement
String。
String
text = 'hello BT' result = text.replace(1, 'BT')