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

iframe获取父级跳转 window.parent.location.hrefdata.msg; iframe通过iframe里面的元素定位到父级打开新窗口 var temp1$("#formid"); te

iframe获取父级跳转

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

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

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

发布者:admin,转转请注明出处:http://www.yc00.com/web/1742568523a4460093.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信