现在的位置: 首页 > 综合 > 正文

使用jquery ajax 读取返回数据时在谷歌浏览器中的一个bug

2013年04月13日 ⁄ 综合 ⁄ 共 385字 ⁄ 字号 评论关闭
                                   //设置客户端缓冲中文件过期时间为0,即立即过期。 
                                    context.Response.Expires = 0;
                                    //清空服务器端为此会话开辟的输出缓存 
                                    context.Response.Clear();
                                    context.Response.Charset = "utf-8";
                                    context.Response.ContentEncoding = System.Text.Encoding.UTF8;
                                    context.Response.ContentType = "text/plain";
                                    context.Response.Write("充值成功");
                                    //将输出缓存中的信息传送到客户端 ,下面的语句会导致在谷歌浏览器中失效,其它浏览器没问题
                                   // context.Response.Flush();
                                   // context.Response.Close();
                                   // context.Response.End();

 

抱歉!评论已关闭.