撰写日期:2019年07月25日
第一点:主要的内容
截图展示:
第二点:功能点的代码流程:
1.CSS样式只是平时简单的就好
<span class="col-2 pl-5">单选框</span>
<input class="m-1" type="radio" name="one" id="TheOne1"/>
<input class="m-1" type="radio" name="one" id="TheOne2"/>
<span class="col-2 pl-5">多选框</span>
<input class="m-1" type="checkbox" name="sss" id="TheCheckbox"/>
- 选项框的数据回填:
//单选框
if (data.ConnectBoxState) {//data是参数,ConnectBoxState是布尔值
$("#TheOne1").attr("checked", "checked");//添加属性
$("#TheOne2").removeAttr(&