<input type = "text" id="football" />dom
對上面獲取焦點。對象
1.獲取dom對象get
var domFocus = document.getElementById("football");input
2.dom對象獲取焦點document
domFocus.focus();focus