当前位置:
代码迷
>>
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')
相关解决方案
求jquery.form.js+jquery.validate.min.js 用ajax提交表单的代码范例
关于<form action >的一个有关问题
jquery form 有关问题
form 表单交付 <form action="<c:url value='desktop'/>"
IE8怎么让input file 的地址框可编辑
关于在struts2中怎么将.action加入到web.xml中的<welcome-file-list>上 急
form.getForm.submit对象不支持此属性或步骤
jsp中<form>标记有关问题?头疼了很多天
midlet.platformRequest("file:///.");打开本土Flash文件
import form.addBookForm 有晓得这个包的出处的嘛?SOS~
<input type="file" name="filename">该如何处理
<input type="file" name="filename">解决方法
为何多了一个输出,结果就不一样了呢?(File)解决办法
struts <html:file> 怎么让前面的框消失,先谢过了
/*Begin Snippet:file*/。刚接触java,这句在类前面,是啥什么意思呢?多谢您了
return name.endsWith有用 return file.isDirectory没用 咋回事
请问 java.io.File 中创建目录
资源文件(Resource File)和数据库(Database)哪个美
资源文件(Resource File)和数据库(Database)哪个好?该如何解决
Windows Form 中怎么将 treeview 的节点与页面内容关联
Form.FormClosing事件不触发(winform)解决思路
input type="file" 下传文件有关问题
input file 多个与此同时使用,怎样区分
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'FreeTextBox' or one of its dependencies. 磁盘空间不足,该如何解决
Parser Error Message: The file '/MasterPage.master' does not exist.解决办法
向高手:The process cannot access the file 'X:\X.XXX' because it is being used by another process
100分,求不用<input type="file"/>上传图片方法,该怎么处理
为什么在DW8设计视图下<include file="">后 下面的table都看不见呢,该如何解决
postbackurl 和 <form action="">中的action有什么区别解决方法
用户代码未处理 sqlexception 关键字 'file' 附近有语法异常