Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input ele

使用 HTML5 的图片上传api的时候报以下错误:jquery

Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.

 出现这个bug的缘由是,input元素 blur的时候,须要将上次图片的input元素的value设置为空字符串,就不会报错了。api

http://stackoverflow.com/questions/29720794/jquery-select-input-file-and-also-set-it-to-another-inputblog

相关文章
相关标签/搜索