页面获取焦点 jquery为例。获取焦点而不触发事件:$("input ").focus(); 焦点事件:$("input").focus(function(){ $("input").css("background-color","#FFFFCC"); });