SOURCE

//字符倒序
var str = "abcde";
var nStr = "";
for(var i = 0;i<str.length;i++){
    var s = str.charAt(str.length-i-1)
    nStr += s;
}
document.write(nStr + "<br/>");
console 命令行工具 X clear

                    
>
console