您的位置:首页 > 其它

escape()和unescape()函数的使用方法

2006-01-07 21:01 656 查看
(一).示例图片效果



(二).代码
<html>
<head>
<title>escape()和unescape()函数的使用方法</title>
</head>
<body>
<script language="javascript">
function run()
{
alert("The esacpe value is:"+escape(document.form1.input1.value));
alert("The unesacpe value is:"+unescape(escape(document.form1.input1.value)));
}
</script>
<form name=form1>
<input type="text" name="input1" size=20 value="12320%456">
<input type=button name=click1 value="show escape value" onclick="run()">
</form>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: