Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 JQuery,一旦 HTML 元素的字体系列发生变化,有没有办法引发事件?
尝试这个
var fontf= $('div').css('font-family'); myfunc(); function myfunc(){ if(fontf != $('div').css('font-family')) alert('changed'); else setTimeout(myfunc,1000); }