js 判断哪个获得焦点 if(document.activeElement.id="txtIdHouse") { } var xx = document.activeElement.id; xx就是现在获得焦点控件的id值