javascript - 使用 window.print() 时页面在 Google chrome 中无响应

标签 javascript jquery google-chrome

我在单击按钮时使用了 window.open(),并在该页面上使用了 window.print()。 如果我只是关闭带有打印对话框的窗口(没有选择“保存”或“取消”),父页面在 Google Chrome 中变得无响应。

它在其他浏览器上运行良好。

有人可以帮忙吗?

最佳答案

这似乎是 Chrome 版本 34 中的一个错误。我相信他们已经解决了这个问题。

看看这个:Javascript window.print() in chrome, closing new window or tab instead of cancelling print leaves javascript blocked in parent window

关于javascript - 使用 window.print() 时页面在 Google chrome 中无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23169760/

相关文章:

debugging - 资源的 status=canceled 在 Chrome 开发者工具中意味着什么?

javascript - 如何关闭 React-Native Webview?

javascript - 加载时 Canvas 图像不显示

javascript - Unchecked runtime.lastError : Cannot access contents of url "". 扩展 list 必须请求访问此主机的权限。在 list 3

javascript - 将文本添加到特定 DIV

jquery - 将 Bootstrap 3.0 Navbar 默认调整大小更改为自定义调整大小

javascript - 新添加的元素 $.each 和 events

javascript - 如何使用js(节点?)限制对某些页面(管理)的访问

html - 当多个html5视频位于同一页面时,Google Chrome崩溃-如何防止?

javascript - WebAudio activeSourceCount