Without further ado, just upload the code
$scope.$watch('custArea', function(newValue, oldValue) { (newValue, function(item, key) { if($("000000") > -1){ // $("All provinces and cities in mainland China have been selected, other values are not selected"); $ =["000000"]; }else{} }); }, true);
The above article angular $watch The change of a variable (example explanation) is all the content I share with you. I hope you can give you a reference and I hope you can support me more.