From c79065127321c42b4954660aa4610f034b11ef42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 20 Dec 2019 10:07:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/jupyter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/javascripts/jupyter.js b/public/javascripts/jupyter.js index e24e06473..19f60e68f 100644 --- a/public/javascripts/jupyter.js +++ b/public/javascripts/jupyter.js @@ -5,3 +5,7 @@ $(function(){ console.log("educoder jupyter js init"); }) + +$(function(){ + window.parent.postMessage('jupytermessage','需要发送的消息'); +}) From 04ae257f279d07fd48ad50563b8f8ce22cc1578f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 20 Dec 2019 10:15:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/jupyter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/jupyter.js b/public/javascripts/jupyter.js index 19f60e68f..7b2313139 100644 --- a/public/javascripts/jupyter.js +++ b/public/javascripts/jupyter.js @@ -7,5 +7,6 @@ $(function(){ }) $(function(){ - window.parent.postMessage('jupytermessage','需要发送的消息'); + console.log("开始发送消息了"); + window.parent.postMessage('jupytermessage','*'); })