运行 ❯
获取你自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <body ng-app=""> <p>Double-click the header:</p> <h1 ng-dblclick="count = count + 1" ng-init="count=0">Welcome</h1> <p>The header has been double-clicked {{count}} times.</p> <p>This example increases the value of the variable "count" every time you double-click the header.</p> </body> </html>