<script src="/js/angular.js1.4.6/angular.min.js"></script>
<div ng-controller="myCtrl">
<input type="text" ng-change="myFunc()" ng-model="myValue" />
<p>输入框已经修改了 {{count}} 次。</p>
angular.module('myApp', [])
.controller('myCtrl', ['$scope', function($scope) {
$scope.myFunc = function() {