<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 引入jquery,否则jquery函数无法调用 -->
<script type="text/javascript" src="static/js/jquery-3.2.1.min.js"></script>
<script>
$(function() {
$('#phoneNumber').focus();
});
</script>
<title>Insert title here</title>
</head>
<body>
<input id="phoneNumber" type="text" />
</body>
</html>
效果