request.onload = function (s) {
splash.style.display = 'none';
stage = s;
layout();
s.isTurbo = turbo;
s.start();
s.triggerGreenFlag();
player.appendChild(s.root);
s.focus();
s.handleError = showError;
}
Request.prototype.load = function(result) {
request.addEventListener('load', this.update);
this.result = result;
this.isDone = true;
this.dispatchLoad(result);
};
- 我打印dispatchLoad()已经执行,但是在onload console.log()却没有输出,另外dispatchProgress主动执行后,onprogress()却可以,代码没有任何报错。
- 这块是phosphorus 一个在h5页面加载scratch2.0 文件的js 解释器.
- 我是按着网易咔哒做的like 栗子
- 补图,主动加载没问题,打印的全是对象,onload方法里console.log(1) 却打印不出来
- so,why,why,why????
谢邀
这句的request是什么东西啊?