<input type="radio" name="person-action" value="go_home" ng-model="person.action" />回家 <input type="radio" name="person-action" value="go_to_school" ng-model="person.action" />回学校
<input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="phone.play_sound" />铃声 <input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="phone.play_vibrate" />震动 <input type="checkbox" ng-true-value="true" ng-false-value="false" ng-model="phone.play_lights" />呼吸灯
var str = ""; // 原来存放选中的项
$scope.Selected = false; //默认未选中
var choseArr=[]; // 定义数组用于存放前端显示
$scope.check = function(z,x){
console.log("HUY:");
console.log(z);
console.log("HUYU:");
console.log(x);
if (x == false) { // 选中
str = str + z + ',';
} else {
str = str.replace(z + ',', ''); // 取消选中
}
choseArr = (str.substr(0,str.length-1)).split(',');
console.log("HY:");
console.log(choseArr);
$scope.number_request = choseArr.length; // 前端显示所选数量
$scope.content_request = choseArr; // 前端显示所选请求ID
};
<tr ng-repeat="item in querydata">
<td ng-bind="$index+1">1</td>
<td><a ui-sref="#">{{item.postid}}</a></td>
<td>{{item.medname}}</td>
<td>{{item.medfact}}</td>
<td>{{item.medcnt}}</td>
<td>{{item.remark}}</td>
<td>{{item.tel}}</td>
<td>{{item.post_time}}</td>
<td><input id={{item.postid}} type="checkbox" ng-model="Selected" ng-click="check(item.postid,Selected)" /></td>
</tr>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有