<html>
<script src="https://cdn.staticfile.net/angular.js/1.6.9/angular.min.js"></script>
<body ng-app="">
<p>请双击标题:</p>
<h1 ng-dblclick="count = count + 1" ng-init="count=0">欢迎</h1>
<p>标题已被双击了 {{count}} 次。</p>
<p>此例将在您每次双击标题时增加变量“count”的值。</p>
</body>
</html>