This input element accepts a filename, which may only be programmatically set to the empty string.

完整的错误信息:Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.

不能给<input type="file" />的标签元素添加value属性!

猜你喜欢

转载自blog.csdn.net/qq_37215621/article/details/131807644