除了网上常见的替换方法reset表单外,
还可用简单的替换方法来实现.
还可用简单的替换方法来实现.
<
input
type
="button"
value
="浏览"
onclick
="teampicupload.click();f1.value=teampicupload.value;"
/>
< input type ="text" id ="f1" />
< asp:FileUpload ID ="teampicupload" runat ="server" Width ="180" CssClass ="hide" />
< input type ="text" id ="f1" />
< asp:FileUpload ID ="teampicupload" runat ="server" Width ="180" CssClass ="hide" />