dwzteam / dwz_jui

jUI
http://jui.org
Other
469 stars 263 forks source link

当 ajaxUrl 方法得到301返回值时,该方法会将response的内容显示在页面上 #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
问题的脚本:dwz.core.js 191行:
问题描述:
json.statusCode 等于 301 
时,跳出超时对话框,但程序没有终止,继续往下走,于是��
�203行,执行了$this.html(response).initUI(),ajax返回的json被显示在
了页面上。

解决:
在 if (json.statusCode==DWZ.statusCode.timeout){...}的尾部增加一个 
return

Original issue reported on code.google.com by xwest...@gmail.com on 19 Oct 2012 at 5:48

GoogleCodeExporter commented 8 years ago
{"data":true,"info":"","status":301} 这个 
是thinkphp下面的,我加上了return,还是没用。

Original comment by yvan.z...@gmail.com on 14 Oct 2013 at 10:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

ThinkPHP/Lib/Core/Action.class.php

#312

            $info['status'] =   array_shift($args);
/*add*/     $info['statusCode'] =   $info['status'] ;// taotao9229@gmail.com

Original comment by taotao9...@gmail.com on 18 Feb 2014 at 3:33