我有一个单行 js_of_ocaml 程序:
Dom_html.window##scroll 100 100 ;
失败并出现错误:
File "tests/test_scrolling.ml", line 2, characters 0-23:
Error: This expression has type int -> int -> unit Js.meth
but an expression was expected of type < get : 'a; .. > Js.gen_prop
Command exited with code 2.
我如何调用这个方法?