方法虽然简单,但是经常忘记,网上一查,很多方法兼容性都有问题,这段代码至少兼容IE和Chrome
setInterval(function(){ document.getElementById('mainFrame').contentWindow.document.getElementById("btnSearch").click();},10000);