You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//用于嵌入到jupyter pod中的js
|
|
//guange 2019.12.18
|
|
|
|
|
|
$(function(){
|
|
console.log("开始发送消息了");
|
|
runEvery10Sec();
|
|
})
|
|
|
|
function runEvery10Sec() {
|
|
// 1000 * 10 = 10 秒钟
|
|
console.log("每隔10秒中一次runEvery10Sec");
|
|
window.parent.postMessage('jupytermessage','*');
|
|
setTimeout( runEvery10Sec, 1000 * 10 );
|
|
|
|
}
|