AngularJS 监听变量变化的实现方法 如下所示:vartimeout;$scope.$watch('search.subj',function(newVal,oldVal){if(newVal!==oldVal){if(timeout)$timeout.ca 监听变量