angularjs $watch

参考 https://blog.csdn.net/u010451286/article/details/50635839

scope.$watch("field1 + field2", function() {
$.post("xxx", {}, function(){});
...
});

猜你喜欢

转载自www.cnblogs.com/white-knight/p/8960808.html