str=escape(yourStr) yourStr=unescape(str)
后台默认utf-8 所以 由js跳到后台是不用解密的
前台
<a target='_blank' href='wxDown.aspx?down="+escape(d_dl.Rows[i].address)+"'>下载</a>
后台
string down = Request.QueryString["down"].ToString();
由于开始中文出现乱码 所以用js编码一下再到后台解码一下 从而避免乱码问题
本来说是 js编码 后 vs解码是个问题 后来看到说是不用解码的
侥幸一试 成功 哦也
但是我想应该是要解码的 难道是巧合 百度了下
原来是我的编码都设置了utf-8 所以无需解码