1、设计源码
<!doctype html> <html> <head> <meta charset="utf-8"> <title>AngularJS获取密码</title> <script type="text/javascript" src="angular.js"></script> </head> <body> <div ng-app=""> <p>密码:<input type="password" ng-model="password" maxlength="12"></p> <p ng-bind="password"></p> </div> </body> </html>
2、实现结果
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-12-22 02:49:40