摘要: <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 码农耕耘 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: JavaScript/js中,有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 。 escape()函数 定义和用法 :escape() 函数可 阅读全文
posted @ 2016-09-16 12:49 码农耕耘 阅读(229) 评论(0) 推荐(0) 编辑