换种方法:var result = document.execCommand('Print');
你看它返回的值,如果失败,则自动重载当前页,并执行打印函数;