autofocus,打开页面,自动获得光标的焦点,适用于当前页面的文本框,按钮或其他,第一优先级的
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<form>
<input type="text" autofocus>
<input type="text" >
</form>
</body>
</html>