javascript跨域(.net4.0环境)
摘要:
服务器端设置: Response.ContentType = "text/plain"; HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*");Response.Write("{\"id\":0}");客户端js: $(function () { if ($.browser.msie && parseInt($.browser.version, 10) >= 8 &&am 阅读全文
posted @ 2011-12-01 11:48 BarneyZhang 阅读(366) 评论(0) 推荐(0) 编辑