// 查找图片轮询
imagesFunc = setInterval(function(){document.documentElement.scrollTop = document.body.scrollHeight;}, 2000);
// 停止查找图片轮询
clearInterval(imagesFunc);
function nodeToString ( node ) {
var tmpNode = document.createElement( "div" );
tmpNode.appendChild( node.cloneNode( true ) );
var str = tmpNode.innerHTML;
tmpNode = node = null;
return str;
}
var data = [];
let images = document.getElementsByTagName("img");
for (let i = 0; i < images.length; i++) {
data[i] = nodeToString ( images[i] );
}
// document.getElementsByTagName('html')[0].innerHTML = data;