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.
dart dart2js でコードをコンパイルし、chrome または firefox で実行する場合
void main() { window.onMouseDown.listen((e) => print(e.clientX)); }
結果:
キャッチされていない TypeError: undefined は関数ではありません
Dartium ではエラーはありません。
e.client.x動作するはずです。 e.clientX長い間利用可能でしたが廃止されました。最近削除されたのかもしれません。
e.client.x
e.clientX