62,073
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
window.onload = function () {
var oInput = document.getElementById("CodeTextBox");
oInput.focus();
}
</script>
<script type="text/javascript" defer="defer">
function () {
var oInput = document.getElementById("CodeTextBox");
oInput.focus();
}
</script>
这样的意思是页面加载完毕才执行