惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
WordPress大学
WordPress大学
Jina AI
Jina AI
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
博客园 - Franky
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
雷峰网
雷峰网
小众软件
小众软件
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - 荆棘人

AI的下一个战场,不在屏幕里,而在现实世界 mysql数据库update时1048 - Column 'other_ext' cannot be null MediatR和CAP结合使用,应清晰区分场景 saas系统定制业务 微服务,数据一致性 微服务中数据一致性问题 mysql中高效取子表数据第一条某个字段返回 .net解决分布式事务简单方案DotNetCore.CAP kubesphere记录 CanalSharp使用学习 漏洞扫描,编写功能,让接口多传参数就报错 调用WebService异常:提供的 URI 方案“https”无效,应为“http”。 (Parameter 'via') asp.net web api 接口内调用多个远程接口优化 asp.net web api 接口控制并发研究(临时性方法) angular-ui-router学习 使用Oracle SQL Developer连接Oracle数据库 element ui <el-form-item>文字太长换行怎么办? element ui 如何在一行放置三个输入框和两个按钮 JavaScript的一些特殊语法 学习angularJS笔记
javascript中的iframe
荆棘人 · 2023-09-05 · via 博客园 - 荆棘人

上级向iframe传值

1.用 postMessage

在上级用 :

iframeElement.contentWindow.postMessage("发送的消息内容","*");

在iframe内接收消息:

window.addEventListener("message",function(ev){
    let 收到的消息=ev.data;
    .....
});

posted on 2023-09-05 09:47  荆棘人  阅读(40)  评论(0)    收藏  举报