var xmlhttp=CreatXml();
xmlhttp.open("get","http://www.ooxx.com/ajaxget.asp?ac=ss&b="+str,true);
var xr=unescape(xmlhttp.responseText);
...xmlhttp.responseText 获取的数据都是带%的,比如空格%20 ,所以用了 unescape 来分析。
c#我倒是也找到了 Regex.Unescape ,但是没效果,不只何解?
xmlhttp.open("get","http://www.ooxx.com/ajaxget.asp?ac=ss&b="+str,true);
var xr=unescape(xmlhttp.responseText);
...xmlhttp.responseText 获取的数据都是带%的,比如空格%20 ,所以用了 unescape 来分析。
c#我倒是也找到了 Regex.Unescape ,但是没效果,不只何解?
我是以下方法搞定的。string all1=UnEscape(raw);
all1=all1.Replace("%","\\");
return Regex.Unescape(all1);
这是最好的办法