<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="../../js/angularjs/angular.min.js"></script>
    <script src="login.js" type="text/javascript"></script>
</head>
<body>

<div ng-app="myApp" ng-controller="myCtrl">
    <div>
        <form>
            <input type="text" ng-model="username" placeholder="输入用户账号">
            <input type="password" ng-model="password" placeholder="输入用户密码">
            <input type="submit" value="登陆" name="login" ng-click="userLogin()">
            {{username+''+password}}
        </form>
    </div>
</div>

<p>使用 ng-model 指令来绑定输入域的值到控制器的属性。</p>

</body>
</html>
