html focus事件小學問

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

相關文章
相關標籤/搜索