|
|
@ -3,14 +3,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
var timebool=false;
|
|
|
|
var timebool=false;
|
|
|
|
window.onload=function(){
|
|
|
|
window.onload=function(){
|
|
|
|
console.log("开始发送消息了");
|
|
|
|
console.log("开始发送消息了1");
|
|
|
|
timebool=true;
|
|
|
|
timebool=true;
|
|
|
|
runEvery10Sec();
|
|
|
|
runEvery10Sec();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function runEvery10Sec() {
|
|
|
|
function runEvery10Sec() {
|
|
|
|
// 1000 * 10 = 10 秒钟
|
|
|
|
// 1000 * 10 = 10 秒钟
|
|
|
|
console.log("每隔10秒中一次");
|
|
|
|
console.log("开始发送消息了2");
|
|
|
|
require(["base/js/namespace"],function(Jupyter) {
|
|
|
|
require(["base/js/namespace"],function(Jupyter) {
|
|
|
|
Jupyter.notebook.save_checkpoint();
|
|
|
|
Jupyter.notebook.save_checkpoint();
|
|
|
|
});
|
|
|
|
});
|
|
|
|