html focus事件小学问

focus事件千万不要有alert方法,否则在有些浏览器会进入死循环的。例如:$('#test').focus(function(){ alert('dead loop'); }); 在chrome下运行将会进入死循环。chrome

相关文章
相关标签/搜索