1.split("分割条件(正则表达式或者字符)") 字符串 ==> 数组
默认返回数组
(1) 将单词分割为字符
"hello".split("") //可返回 ["h", "e", "l", "l", "o"]
(2)将句子分割为单词
var words = sentences.split(' ')
(3)去除字符串中的间隔符号,比如: = | 等
"2:3:4:5".split(":") //将返回["2", "3", "4", "5"] "|a|b|c".split("|") //将返回["", "a", "b", "c"]