var iframe = document.createElement('iframe');
iframe.hidden = true;
iframe.src = "jianshu://notes/" + Maleskine.note.slug;//唤起app
document.body.appendChild(iframe);
var startTime = new Date();
window.setTimeout(function() {
600 > new Date() - startTime && (Maleskine.showDownloadHelp())//跳转下载
}, 400)
window.setTimeout(function() {
600 > new Date() - startTime && (Maleskine.showDownloadHelp())
}, 400)
特别这一段是怎样工作的呢?
是不是该理解为给定最长启动时间600毫秒,超时后不管有没有启动都认为没启动。如果600内启动了,检查后边那个方法