Created
October 1, 2014 14:49
-
-
Save m2ym/2f4939bb30b972447840 to your computer and use it in GitHub Desktop.
ゆるふわJavaScriptプログラミング in OCaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Easyjs | |
let () = begin%js | |
let foobar = {| jQuery("#foobar") |} in | |
let value = of_string "Hello, World!" in | |
let callback _ = {| ${foobar}.text(${value}) |} in | |
ignore {| window.setTimeout(${fn callback}, 1000) |} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment