在下面的代码中,我尝试处理复选框上的单击事件。我期望在javascript控制台中看到打印出的单词“hello”,但是我什么都看不到。我如何修改代码以获取print语句执行? let checkGroupByRounds = Dom_html.createInput ~_type:(Js.string "checkbox") doc in
Lwt_js_events.clicks che
我有以下的OCaml程序 开放的js let lex s = Compiler.Parse_js.lexer_from_file s
let parse s = lex s |> Compiler.Parse_js.parse
let buffer_pp program =
let buf = Buffer.create 10 in
let pp = Compiler.P
我有一个行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 exp