一.原因: 因为上传按键type写成了submit导致提交了一次action,致使ajax未获取到返回结果走了error 二.修改方法: 将type="submit" 改为type="button" 改为