1.保持后台控制器返回的数据为字符串格式

2.js:dataType类型保持为html格式
dataType: 'html',//默认就是html类型,不写对火狐有影响
3.将上传后后台返回的字符串转变成json数据格式,正常渲染页面
responseText = JSON.parse(response); //把html转换成json类型

 

相关文章:

  • 2022-12-23
  • 2021-10-12
  • 2021-05-17
  • 2021-05-22
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-09-10
  • 2021-08-25
  • 2021-11-21
相关资源
相似解决方案