iframe
文章平均质量分 66
小道士在路上
a rookie
展开
-
layer父子页面交互
子页面调用父页面方法、变量window.parent.curVue.typography(); //在子页面中 window.parent变量就是父页面的全局上下文变量了 你可以拿到父页面中的所有变量和方法等 我的代码中curVue是父页面的VUE实例 typography是vue中methods中的方法父页面调用子页面方法layer.open({ type : 2, title : '页面标题', shadeClose : true, s原创 2020-09-14 16:37:22 · 242 阅读 · 0 评论 -
iframe自动撑开高度
<html><head><style>body {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;overflow: hidden;}</style></head> <body><iframe src='" ht...转载 2019-08-07 13:56:01 · 13249 阅读 · 4 评论