当前位置: 代码迷 >> Java Web开发 >> js设立form属性因为有file控件
  详细解决方案

js设立form属性因为有file控件

热度:1874   发布时间:2013-02-25 21:17:31.0
js设置form属性因为有file控件。

 ie浏览器中我设置form中的属性setAttribute('encoding','multipart/form-data')没有问题,但是设置回来就有问题
setAttribute('encoding','')这一句就出错。

------解决方案--------------------------------------------------------
直接在form 里面设置就是了 为什么要这么setAttribute('encoding','multipart/form-data')
  相关解决方案