//这是用来观察title的变动的
var target = document.querySelector('title');
var observer = new window.WebKitMutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
alert(target.innerHTML);});});
observer.observe(target, {characterData: true,childList: true});
//察看html的内容的
document.documentElement.innerHTML
网友评论