elm html and js:如何将Elm与HTML和JS集成的示例 源码
HTML / JS集成— 该项目说明了如何在HTML页面中嵌入Elm程序以及如何与JavaScript进行通信。 制作说明 git clone https://github.com/evancz/elm-html-and-js.git cd elm-html-and-js elm-make Stamps.elm --output elm.js open index.html API使用概述 如果您创建一个名为Stamps的Elm模块,它将在JavaScript中命名为Elm.Stamps 。 要实例化模块,可以使用以下任何功能: Elm . fullscreen ( Elm . Stamps , { reset : [ ] } ) ; // take over the whole page Elm . embed ( Elm . Stamps , div , { reset : [
下载地址
用户评论