focus事件千萬不要有alert方法,否則在有些瀏覽器會進入死循環的。例如:$('#test').focus(function(){ alert('dead loop'); }); 在chrome下運行將會進入死循環。chrome