From 51506accf3c43dc1215359ef61b805c8653e4364 Mon Sep 17 00:00:00 2001 From: Johnny Kwok Date: Thu, 21 Feb 2019 13:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=94=99=E5=88=AB=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 4-frames-and-windows/03-cross-window-communication/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/4-frames-and-windows/03-cross-window-communication/article.md b/4-frames-and-windows/03-cross-window-communication/article.md index aa2fd79ecb..17a2b5d250 100644 --- a/4-frames-and-windows/03-cross-window-communication/article.md +++ b/4-frames-and-windows/03-cross-window-communication/article.md @@ -360,7 +360,7 @@ window.addEventListener("message", function(event) { 1. 发送方调用 `targetWin.postMessage(data, targetOrigin)`。 2. 如果 `targetOrigin` 不是 `'*'`,那么浏览器会检测 `targetWin` 的链接地址 -3. 如果满足条件,`targetWin` 会触发 `message` 时间,并且有以下三个属性: +3. 如果满足条件,`targetWin` 会触发 `message` 事件,并且有以下三个属性: - `origin` —— 发送方窗口的源(比如 `http://my.site.com`) - `source` —— 对发送窗口的引用 - `data` —— 数据,除 IE 只支持字符串意外,其余浏览器都是对象。