我正在尝试type为输入设置属性:
input [ type "checkbox" ] []
Run Code Online (Sandbox Code Playgroud)
但是我收到一个错误:
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.
当我尝试使用时
input [ type' "checkbox" ] []
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
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 …