JS字符串反转

var msg= 'hello';
var msg= msg.split('').reverse().join('');
console.log(msg);
原文地址:https://www.cnblogs.com/SharkJiao/p/13597473.html