解决ajax提交到后台数据成功但返回不走success而走的error问题
下面是ajax代码和Controller层代码,期初以为是后台程序写错了。 $("#sourcefile").ajaxSubmit({ type: "post", dataType: "json", // 'xml', 'script', or 'json' (expected server response type) url: "/springMVC/upload/up", success: function (result) { if (result) { alert(result.col0); } }, error:fun
下载地址
用户评论