`

firefox中的onpropertychange替代方案

 
阅读更多
document.getElementById('tx1').watch("innerHTML",  
       function (id, oldval, newval) {  
          console.log("foo." + id + " changed from " + oldval + " to " + newval); 
         return newval;  
}); 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics