0
我有一个行js_of_ocaml程序:如何调用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.
如何调用该方法?