zoukankan      html  css  js  c++  java
  • Angularjs实例3

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible"content="edge" />
    <meta name="viewport"content="width=device-width,initial-scale=1" />
    <title></title>
    <meta charset="utf-8" />
    <link rel="stylesheet"href="bootstrap/css/bootstrap.min.css" />
    <style>

    </style>
    </head>
    <body>
    <div class="container"style="padding:50px">
    <div data-ng-app="myApp"data-ng-controller="myCtrl">
    <table class="table table-bordered table-striped">
    <tr>
    <th class="col-xs-3"></th><th class="col-xs-3 text-center">P2P</th><th class="col-xs-3 text-center">余额宝</th><th class="col-xs-3 text-center">银行理财产品</th>
    </tr>
    <tr data-ng-repeat="info in infoList">
    <td class="text-center">{{info.title}}</td><td class="text-center">{{info.p2p}}</td><td class="text-center">{{info.yeb}}</td><td class="text-center">{{info.bank}}</td>

    </tr>
    </table>


    </div>
    </div>

    <script src="jQuery/jquery-2.2.0.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
    <script>
    angular.module("myApp", []).controller("myCtrl", function ($scope) {
    $scope.infoList = [
    { title: "预期年化收益率", p2p: "约 7% - 14%", yeb: "约 3% - 4%", bank: "约 4% - 5.5%" },
    { title: "买入当天生息", p2p: true, yeb: false, bank: false },
    { title: "买入次日开始付息", p2p: true, yeb: false, bank: false },
    { title: "每日付息", p2p: true, yeb: true, bank: false },
    { title: "每日利息自动复投", p2p: true, yeb: true, bank: false },
    { title: "期限灵活,随时可取", p2p: true, yeb: true, bank: false },
    {title:"可以零钱增投",p2p:true,yeb:true,bank:true}
    ]
    })
    </script>
    </body>
    </html>

  • 相关阅读:
    JSON序列化选项
    JOSN的stringify()和parse()方法
    html5增强元素--续
    html5页面增强元素
    js继承模式
    js常用设计模式
    js跨浏览器事件处理
    前端兴趣浓厚,后端提不起来兴趣
    padding的讲究
    margin的讲究
  • 原文地址:https://www.cnblogs.com/melao2006/p/5118607.html
Copyright © 2011-2022 走看看