<input type=
发布时间:2022-10-28 18:34:40 228 相关标签: # javascript# html# php# java# java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
<script type="text/javascript">
function showPath(){//openfileDialog 和获取路径
document.getElementById("path").innerText=document.getElementById("selFile").value;
}
</script>
</head>
<body>
<input id="selFile" type="file" onchange ="showPath()"/>
<div id="path"></div>
</body>
</html>
文章来源: https://blog.51cto.com/u_5112239/5654270
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报