Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道这段代码有什么问题吗?
FileReader reader = new FileReader(); reader.on.loadEnd.add(fileLoader);
错误:中断异常:类“事件”没有实例获取器“loadEnd”。
它应该像
reader.onLoadEnd.listen(fileLoader); // or reader.onLoadEnd.listen((e) => fileLoader(e)); // don't know what your fileLoader is exactly
或者
reader.on['load-end'].listen(fileLoader);