Button NHAML单选按钮语法

Button NHAML单选按钮语法,button,radio-button,nhaml,Button,Radio Button,Nhaml,有人知道NHAML中所选单选按钮的正确语法吗 这是我当前的NHAML代码:%input{type=“radio”,name=“Relocation”,value=“Yes”} 非常感谢您的帮助 谢谢 NHAML2.0Beta1语法 %input{type="radio", name="Relocation", checked="true"} NHAML2.0Beta1语法 %input{type="radio", name="Relocation", checked="true"} 最新版本

有人知道NHAML中所选单选按钮的正确语法吗

这是我当前的NHAML代码:%input{type=“radio”,name=“Relocation”,value=“Yes”}

非常感谢您的帮助


谢谢

NHAML2.0Beta1语法

%input{type="radio", name="Relocation", checked="true"}

NHAML2.0Beta1语法

%input{type="radio", name="Relocation", checked="true"}

最新版本的NHaml()改变了它处理属性的方式。不要使用逗号:

%input{type="radio" name="Relocation" value="Yes"}

最新版本的NHaml()改变了它处理属性的方式。不要使用逗号:

%input{type="radio" name="Relocation" value="Yes"}
或者直接使用HtmlHelper

或者直接使用HtmlHelper