SOURCE

console 命令行工具 X clear

                    
>
console
function writeDocument(variable){
    document.write(variable+"<br/>");
}
var str="abcde";
function done(str){
  var temp=str.split("");
  temp.reverse(); 
  return temp.join("");
}
document.write("倒序前:"+str+"<br/>");
document.write("倒序后:"+done(str)+"<br/>");
<!DOCTYPE html> 
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <script>
    </script>
</head>
<body>
</body>
</html>