JSFiddle - React, Tailwind, and code Playground

HTML

SSSDADWAD

JavaScript

var observer = new MutationObserver(function(mutations) {
	console.log('MutationObserver:', mutations);
});
observer.observe(document, {
	subtree: true,
	childList: true
});

document.addEventListener('DOMNodeInserted', function(e) {
	console.log('DOMNodeInserted:', e);
}, true);


// 反射出纯净的接口
var frm = document.createElement('iframe');

console.warn('begin');
document.body.appendChild(frm);
console.warn('end');

var raw_fn = frm.contentWindow.Element.prototype.setAttribute;