jquery判断对象是否获得焦点 1 var isFocus=$("#tRow").is(":focus"); 2 if(true==isFocus){ 3 alert("focus"); 4 }else{ 5 alert("blur"); 6 }