📄 uploadmain.jsp~8~
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ include file="top.jsp" %>
<%
request.setCharacterEncoding("gb2312");
%>
<html>
<title>FileUpload</title>
<body background="bg2.jpg">
<center>
<form method="post" action="uploadAction.jsp" ENCTYPE="multipart/form-data">
<br>
上载的文件:
<br>
<input type="file" name="filePath" id="filePath">
<br><br>
<input type="submit" name="submit" value="上载" >
</form>
</center>
</body>
</html>
<%--<body>
<center>
<form method="post" action="fileupload.jsp" ENCTYPE="multipart/form-data">
<br>
上载的文件:
<br>
<input type="file" name="filePath" id="filePath" onchange="this.form.getPath.value=this.form.filePath.value">
<input name="getPath" type="hidden" id="getPath" >
<br><br>
<input type="submit" name="submit" value="上载" onclick="" >
</form>
</center>
</body>
<script language="javascript" type="">
function checkForm(){
//alert("string"+form.filePath.value.toString()); //checkForm(form)带参数
//alert("filePath :"+document.getElementsByName("filePath").value);
//var aa=document.getElementById("filePath").value;//checkForm()
//alert(aa);
return true;
}
</script>
--%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -