SOURCE

function fanxiangshuchu(str) 
{ 
    var i = str.length; 
    var a = ""; 
    while(--i >= 0) 
    { 
        a += str.charAt(i);  
    } 
    return a; 
} 
var str = "abcde"; 
str = fanxiangshuchu(str); 
document.write(str); 
console 命令行工具 X clear

                    
>
console