首页 > 其他 > 详细

angular 1 input中选中状态绑定

时间:2020-04-07 18:57:33      阅读:100      评论:0      收藏:0      [点我收藏+]
1.type="checkbox
isAllCheck为true则选中,为false则不选中
<input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="isAllCheck" /> 
 
2.type="radio"
state为1则选中男,为2则选中女
<input type="radio" ng-value=1 ng-model="state" ng-click=‘updatetree()‘>男
<input type="radio" ng-value=2 ng-model="state" ng-click=‘updatetree()‘>女

  

angular 1 input中选中状态绑定

原文:https://www.cnblogs.com/susu2020/p/12654875.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!