当前页面: 开发资料首页 → Javascript 专题 → escape()和unescape()函数的使用方法
escape()和unescape()函数的使用方法
摘要: escape()和unescape()函数的使用方法
<tr>
<td>
(一).示例图片效果
(二).代码
<head>
escape()和unescape()函数的使用方法</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>
</td>
</tr>
</table>
↑返回目录
前一篇:
SetTimeOut方法用法示例
后一篇:
JavaScript读写Cookie