大佬教程收集整理的这篇文章主要介绍了angularjs1.x radio组checkbox组,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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
以上是大佬教程为你收集整理的angularjs1.x radio组checkbox组全部内容,希望文章能够帮你解决angularjs1.x radio组checkbox组所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。