2013年3月19日

摘要: javascript中可用的编码解码函数,有如下的组合:escape(string);unescape(string);encodeURI(string);decodeURI(string);encodeURIComponent(string);decodeURIComponent(string);他们之间的区别为:escape/unescape:以16进制编码字符串,对空格、符号等字符用%xx编码表示,对中文等字符用%uxxxx编码表示。自javascript1.5之后,此方法已经不被推荐使用。encodeURI/decodeURI:以UTF-8编码编码字符串,对这些字符:“; , / ? 阅读全文
posted @ 2013-03-19 18:16 alonelonly 阅读(179) 评论(0) 推荐(0)
摘要: 方法一:页面提交数据一般有两种方法:get,post。post就是所谓的form提交,使用视图;get是通过url提交。 Get方法一般用后台代码(如asp,asp.net)获得参数,代码很简单:Request.QueryString["id"];即可获取。 有些时候需要直接在前台获取url参数,要... 阅读全文
posted @ 2013-03-19 16:06 alonelonly 阅读(363) 评论(0) 推荐(0)

导航