check组只要判断是否为true就可以
<span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.monday" style=‘vertical-align:-2px;‘ />星期一</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.tuesday" style=‘vertical-align:-2px;‘ />星期二</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.wednesday" style=‘vertical-align:-2px;‘ />星期三</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.thursday" style=‘vertical-align:-2px;‘ />星期四</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.friday" style=‘vertical-align:-2px;‘ />星期五</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.saturday" style=‘vertical-align:-2px;‘ />星期六</span> <span style=‘display:block;float:left;padding:7px;‘><input type=‘checkBox‘ ng-model="formDataObject.week.sunday" style=‘vertical-align:-2px;‘ />星期日</span>
<span style=‘display:block;float:left;padding:1px;‘><input type=‘radio‘ value="all" ng-model="formObject.valueRange" name="valueRange" style=‘vertical-align:-2px;‘ />全部日期</span> <span style=‘display:block;float:left;padding:1px;margin-left:30px;‘><input type=‘radio‘ value="week" ng-model="formObject.valueRange" name="valueRange" style=‘vertical-align:-2px;‘ />按星期</span> <span style=‘display:block;float:left;padding:1px;margin-left:30px;‘><input type=‘radio‘ value="date" ng-model="formObject.valueRange" name="valueRange" style=‘vertical-align:-2px;‘ />按日期</span>
js取值为$scope.formObject.valueRange 选择全部 取值为all 选择按星期 取值为week
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。