标签:attribute onchange fun prope style state new dig ons
function onStyleChange(){ alert(document.getElementById(‘digistat‘).className); } function onIeChange(p){#可以添加的按钮onchange事件 if(event.propertyName == ‘digistaterr‘){ onStyleChange(); } } if(window.MutationObserver){ var observer = new MutationObserver(function(mrs){ if(mrs[0].attributeName == ‘class‘) onStyleChange(); }); observer.observe(document.getElementById(‘digistat‘), { ‘attributes‘: true }); }
标签:attribute onchange fun prope style state new dig ons
原文地址:https://www.cnblogs.com/ghl666/p/12956436.html