摘要:
<script type="text/javascript">var str;var asc;str = "A";document.write(str.charCodeAt(0));asc = 65;document.write(String.fromCharCode(asc));</script> 阅读全文
posted @ 2016-09-16 14:40
码农耕耘
阅读(1205)
评论(0)
推荐(0)
摘要:
JavaScript/js中,有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 。 escape()函数 定义和用法 :escape() 函数可 阅读全文
posted @ 2016-09-16 12:49
码农耕耘
阅读(253)
评论(0)
推荐(0)
浙公网安备 33010602011771号