【发布时间】:2013-12-01 17:16:54
【问题描述】:
我将 (2.0)js-interop 库与 JS 库 ImageLoaded 结合使用,我被困在 FunctionProxy 类中,因为下面的代码会引发以下错误:
异常中断:参数不匹配的闭包调用:函数“调用”
js.FunctionProxy loaded = new js.FunctionProxy((){
print("called");
js.Proxy pckry = new js.Proxy(context.Packery, container, options);
});
js.Proxy img = new js.Proxy(context.imagesLoaded, container, loaded);
这很奇怪,因为我的 js 回调在应用崩溃之前被调用了 5 次。
【问题讨论】:
标签: callback dart dart-js-interop