完整的写法是:1、用split拆分字符串变成字符数组:str="i love you";strArr = str.split(" ");2、最前面增加hello:strArr.unshift("hello");3、最后面插入too:strArr.push("too");4、利用sort方法排序:strArr.sort();5、输出:strArr.join(" ")