解决IE9 IE8的跨域 请求问题
/// <summary>
/// 根据url获取对应的HTML
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
[Request("GET", "getHtml.aspx")]
public View GetHtml(string url)
{
WebClient wc = new WebClient();
wc.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko");
var datas = wc.DownloadData(url);
string strHtml = Encoding.UTF8.GetString(datas);
return new TextView(strHtml);
}
做个本地跳转