监听页面加载 document.onreadystatechange=function(){ if(document.readystate=='complete'){ // 加载完成执行操作;; } }