How to set a value to a file input in HTML?

前端 未结 8 1945
天命终不由人
天命终不由人 2020-11-21 04:45

How can I set the value of this?


8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-21 05:09

    You cannot, due to security reasons.

    Imagine:

    You don't want the websites you visit to be able to do this, do you? =)

提交回复
热议问题