最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

layui下iframe打开浏览器新窗口,跳转新窗口

业界 admin 0浏览 0评论

iframe获取父级跳转

window.parent.location.href=data.msg;

iframe通过iframe里面的元素定位到父级打开新窗口

var temp1 = $("#formid");
temp1.parentElement.ownerDocument.defaultView.open('https://www.baidu')

iframe获取父级跳转

window.parent.location.href=data.msg;

iframe通过iframe里面的元素定位到父级打开新窗口

var temp1 = $("#formid");
temp1.parentElement.ownerDocument.defaultView.open('https://www.baidu')

发布评论

评论列表 (0)

  1. 暂无评论