【无刷新上传

要实现文件上传,form必须设置几个属性:
1.action:设为要处理数据的页面地址;
2.method:设为"post";
3.enctype/encoding:必须设为"multipart/form-data",这里要注意的是在ie中用js修改form的enctype属性是没有效果的,只能修改encoding;

相关文章:

  • 2021-10-16
  • 2021-06-24
  • 2021-10-04
  • 2022-12-23
  • 2021-11-28
  • 2021-12-04
  • 2021-07-17
  • 2021-11-12
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
相关资源
相似解决方案