**form表单**
```
submit0 :function(){
  $("#flowSubmmit").form('submit',{  
            type : 'POST',  
            dataType : "json", 
            url : '/flow/submitTask.do',  
            success : function(result) {
             var s=result;
                var result = eval('(' + result + ')');  
                if (result.message==("ok")) {  
                    $.messager.alert('提示!', '成功','info',  
                            function() {  
                                $('#supplementaryBudget').dialog('close');  
                            });  
                } else {  
                    $.messager.confirm('提示',"失败!");  
                    $('#supplementaryBudget').dialog('close');  
                }  
            }  
        });

},
```
**请求头**```
Host  localhost:8080
User-Agent  Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/55.0
Accept  text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8
Accept-Language  zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding  gzip, deflate
Content-Type  application/x-www-form-urlencoded
Content-Length  275
Referer  http://localhost:8080/basic/toTaskManager.do
Cookie  JSESSIONID=BB393F5999EC3BF6A85CBE64B96264BB
Connection  keep-alive
Upgrade-Insecure-Requests  1
```**响应头**Server Apache-Coyote/1.1
Content-Type text/plain;charset=UTF-8
Content-Length 16
Date Thu, 28 Sep 2017 08:49:47 GMT
问题:
form表单提交,响应类型text/plain,不走sucess,直接结束
但是页面显示内容如下
![这里写图片描述](http://img.blog.csdn.net/20170928170328772?water/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemhvdTkyMDc4NjMxMg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)即使后面我返回text/html,json也没有用。

解决方案 »

  1.   

    $.ajax({
    ...
    success:function(){
    },
    error:function(){
    //这个error回调你加上,看看程序是不是走到这里了
    }
    });
      

  2.   

    error:function(XMLHttpRequest, textStatus, errorThrown){
    //如果进了error,观察一下这3个变量
    }
      

  3.   

    success : function(result) {
                 var s=result;
                    var result = eval('(' + result + ')');  
    你定义了相同的变量名,把变量名改掉试试
      

  4.   

    已经解决,这是ie浏览器问题,ie9以上的浏览器会自动对返回的json设置为保存