zoukankan      html  css  js  c++  java
  • AngularJS Bootstrap

    引入bootstrap.css。
    引入AngularJs.js.
    <body ng-app="myApp" ng-controller="userCtrl">
      <div class=“container”>
       <h3>User info</h3>
    <table class="table table-striped">
    <thead>
    <tr>
    <td>Edit</td><td>First Name</td><td>Last Name</td>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="user inusers">
    <td><button class="btn" ng-click="editUser(user.id)">
    <span class="glyphicon glyphicon-pencil"></span>Edit</button>
    
    </td>
    <td>{{ user.fName }}</td>
    <td>{{user.lName}}</td>
    </tr>
    </tbody>
    </table>
       </div>
    </body>
    <hr/>
    <button class="btn btn-success" ng-click="editUser('new')">
    <span class="glyphicon glyphicon-user"></span> Create New User
    </button>
    <h3 ng-show="edit">Create New User</h3>
    <h3 ng-hide="edit">Edit User</h3>
    
    <form class="form-horizontal">
    <div class="form-group">
    <label class="col-sm-2 control-label">First Name:</label>
    <div class="col-sm-10">
    <input type="text" ng-model="fName" ng-disabled="!edit" placeholder="First Name">
    </div>
    </div>
    
    </form>
  • 相关阅读:
    Apache POI 示例
    使用wsimport生成webservice客户端代码
    监听器
    @WebFilter注解
    事务
    k8s的deployment应用
    k8s 组件架构
    使用kubeadm安装kubernetes1.12.1
    轻量级批量管理工具pssh
    使用Bind服务配置DNS服务器
  • 原文地址:https://www.cnblogs.com/professional-NET/p/5097476.html
Copyright © 2011-2022 走看看