[查看演示] 源码如下 ---------------------------------------------------------- <HTML>
<HEAD>
<TITLE>字符倒排-www.51windows.Net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Description" CONTENT="Power by 51windows.Net">
</HEAD>
<BODY>
<script>
var str=prompt("请输入字符串","我是猪")
if(str!=null)alert(str.split("").reverse().join(""));
</script>
</BODY>
</HTML>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> |