现在有两个单选框“男”和“女”,后台数据“1代表男”,“0代表女”,假如现在从后台传来数据为1如何让男代表的单选框勾上。
<input type="radio" name="sex" ${obj.sex eq 1 ? "checked" : ""}>男 <input type="radio" name="sex" ${obj.sex eq 0 ? "checked" : ""}>女