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.
console.error(foo);Dartでこれを行うにはどうすればよいですか?
console.error(foo);
メソッドはかなり近くなりますprint()が、それは私が望んでいるものではありません。スタックトレースと一緒にエラーとアイコンの通知を受け取りたいです。
print()
Dartで行うのは実際には非常に簡単です。
import 'dart:html'; main() { window.console.error('Something bad occurred'); }