这个功能本身没有什么难度,只是以前没有想过,今天想起来,试了一下,确实如此。
<html> <head><title>Javascript与上传控件</title></head> <body> ?<input type="file" id="file1" ><input type="button" value="上传" onclick="DoUp();"> ?<script type="text/javascript"> ??function DoUp(){ ???alert(document.getElementById("file1").value); ??} ??</script> </body> </html>
关键字: file
发表评论
相关文章
想了解服务发现、配置管理的同学,欢迎加入1000人Consul交流群:234939415
扫码关注公众号:萤火架构
文章分类
最新评论