由于安全原因,您不能。
想像:
<form name="foo" method="post" enctype="multipart/form-data"> <input type="file" value="c:/passwords.txt"></form><script>document.foo.submit();</script>
您不希望所访问的网站能够做到这一点,对吗?

由于安全原因,您不能。
想像:
<form name="foo" method="post" enctype="multipart/form-data"> <input type="file" value="c:/passwords.txt"></form><script>document.foo.submit();</script>
您不希望所访问的网站能够做到这一点,对吗?