把一个字符串分割成字符串数组:
var qwert="a b c d 2021.1.1 10:20";
var n=qwert.split(" ");
console.log(n)
把一个字符串分割成字符串数组并倒序:
var n=qwert.split(" ").reverse();
console.log(n)
把一个字符串分割成字符串数组进行倒序后再转回字符串:
var n=qwert.split(" ").reverse().join("");
console.log(n)