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)); }
结果:
未捕获的类型错误:未定义不是函数
在 Dartium 中没有错误。
e.client.x应该管用。 e.clientX可以使用很长时间,但已弃用。也许它最近被删除了。
e.client.x
e.clientX