signed

QiShunwang

“诚信为本、客户至上”

input file 不能更改value值的解决办法

2021/5/15 3:02:11   来源:
<div class="form-item" id="file-demo-wrapper">
 <label for="file-demo">请选择文件:www.jb51.net </label>
 <input type="file" name="files[file-demo]"  class="form-file" id="file-demo" size="40" />
</div>




$("#file-demo").remove();
//https://www.jb51.net
$("<input type=\"file\" name=\"files[file-demo]\"  class=\"form-file\" id=\"file-demo\" size=\"40\" />").appendTo("#file-demo-wrapper");