javascript - window.open 在边缘浏览器中返回 null 作为子窗口引用
问题描述
这是我在应用程序的 JS 文件中编写的代码的一部分:
var myUrl="https://www.google.com";
var myArr=[];
var childWin= window.open(myUrl,'_blank');
myArr.push({chidlWindowHandle:childWin});
console.log(myArr.chidlWindowHandle);
它在 chrome 和 firefox 中打印子窗口对象。但它在边缘浏览器中返回 null。
谁能告诉我如何在 Edge 中获取子窗口引用?
谢谢!
解决方案
推荐阅读
- javascript - 使用 react native 生成 pdf、word 等文件的最佳方法是什么?
- javascript - 如何将 activeID 的状态设置为 React Native 中 MapBox 上选定图标的特定 feature.id
- .net - WPF 打印:无法获得打印机支持的 PageMediaSize
- angular - 身份验证配方
- javascript - 为什么 Angular Material compareWith 函数只比较第一个值?
- node.js - Socket.io Web Socket 连接握手错误
- c# - 对象不能从 DBNull 转换为 Linq 查询中的其他类型
- arrays - 在类中存储和恢复二维数组
- asp.net - System.Net.Http 参考属性路径未显示 NuGet 包路径
- elasticsearch - 在 Kibana 中获得“预期为 [END_OBJECT] 但找到 [FIELD_NAME]”