小编Ach*_*ian的帖子

榆树 - 输入类型复选框

我正在尝试type为输入设置属性:

input [ type "checkbox" ] []
Run Code Online (Sandbox Code Playgroud)

但是我收到一个错误:

It looks like the keyword `type` is being used as a variable.
input [ type "checkbox" ] []
       ^
Rename it to something else.
Run Code Online (Sandbox Code Playgroud)

当我尝试使用时

input [ type' "checkbox" ] []
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Ran into a single quote in a variable name. This was removed in 0.18!
input [ type' "checkbox" ] []
       ^
Change it to a number or an underscore, like type_ or type1
Or better yet, choose a …
Run Code Online (Sandbox Code Playgroud)

frontend functional-programming elm reactive

5
推荐指数
2
解决办法
619
查看次数

标签 统计

elm ×1

frontend ×1

functional-programming ×1

reactive ×1