11 2011 档案
js解码与编码和服务器端的解码与编码
摘要:服务器端:Server.UrlEncode()方法对Url进行编码Server.UrlDecode()方法 对url进行解码Js方法: escape() 函数可对字符串进行编码; unescape() 函数可对字符串进行解码;定义和用法unescape() 函数可对通过 escape() 编码的字符串进行解码。定义和用法escape() 函数可对字符串进行编码,这样就可以在所有的计算机上读取该字符串。简单例子:js编码:Var name= escape ($(“#txtname”).value());var strurl =login.aspx+ "?opt=add&comp
阅读全文
浙公网安备 33010602011771号