1、
window.onload = function () {automatic(); }
2、
function automatic(){ //每隔两秒刷新一次页面setTimeout(automatic,2*1000);
}