String 对象用于处理已有的字符串。
a.字符串使用split()函数转为数组:
b.字符串大小写转换使用函数 toUpperCase() / toLowerCase():
c.replace() 方法在字符串中用某些字符替换另一些字符。
d.match()函数用来查找字符串中特定的字符,并且如果找到的话,则返回这个字符。
e.字符串使用 indexOf() 来定位字符串中某一个指定的字符首次出现的位置.
f.字符串(String)使用长度属性length来计算字符串的长度.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>字符串对象</title>
</head>
<body>

</body>
</html>
<script>
var str = 'abcdABCD EFGefg';
len = str.length;
console.log(len)
console.log(str.indexOf('a'))
console.log(str.match('f'))
console.log(str.replace('abc','123'))
</script>