小编Lui*_*gel的帖子

我想知道Elm中元素的属性html

我想知道Elm中元素的属性html,例如她的坐标.我正在尝试使用Json.Decode.

我是榆树的新人,这是出于学习目的.

这是一个简单的代码,我使用的是Elm 0.18:

module Stamps exposing (..)

import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)


type alias Model =
    {}


type Msg
    = NoOp
    | Clicking


model : Model
model =
    {}


update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
    case msg of
        NoOp ->
            ( model, Cmd.none )

        Clicking ->
            let
                _ =
                    Debug.log "msg1" model
            in
                ( model, Cmd.none )


view : Model -> Html Msg …
Run Code Online (Sandbox Code Playgroud)

html styles elm

2
推荐指数
1
解决办法
554
查看次数

标签 统计

elm ×1

html ×1

styles ×1