Window:focus() 方法发出将窗口置顶的请求。用户设置可能导致此操作失败,并且在方法返回之前并不能保证窗口已处于最前端。语法jsfocus() 参数无。返回值无(undefined)。示例jsif (clicked) { window.focus(); } 规范SpecificationHTML Standard # dom-window-focus-dev浏览器兼容性BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.