HTML代碼:html
//循環列表控制器js代碼中的Planlist對象 <div class="order-list-item planlist" ng-repeat="date in PlanList"> 列表1<input type="checkbox" name="date.carnumber" ng-model="playlist[date.carnumber]" ng-click="onchecked()"> </div>
JS代碼:測試
$scope.playlist = {};//建立一個list //執行選重操做看到的結果數據測試方法onchecked()HTML中調用 $scope.onchecked = function() { console.log("fafaff==true or false:" + JSON.stringify($scope.playlist)); };