@H_404_0@<span style="background-color: #ccffcc">
废话不多说,直接上代码
<div class="jb51code">
<pre class="brush:js;">
$scope.$watch('custArea',function(newValue,oldValue) {
angular.forEach(newValue,function(item,key) {
if($scope.custArea.indexOf("000000") > -1){
// $scope.toastWarn("已选择中国大陆所有省市,其他值不可选");
$scope.custArea =["000000"];
}else{}
});
},true);