• Angularjs实例2


    <!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>
    table, th, td {
    border:1px solid #E5ccee;
    border-collapse:collapse;
    padding:10px;
    }
    </style>
    </head>
    <body>
    <div class="container"style="padding:50px">
    <div data-ng-app="myApp"data-ng-controller="myCtrl">
    <table class="table table-striped">
    <tr><th>Row Number</th><th>Language</th></tr>
    <tr data-ng-repeat="n in languages"><td>{{$index+1}}</td><td>{{n}}</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.numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8];
    $scope.languages = ['Html5', 'Css3', 'Javascript', 'jQuery', 'Bootstrap', 'Angularjs', 'C#', 'Asp.net', 'Mssql'];
    })
    </script>
    </body>
    </html>

  • 相关阅读:
    8.20Java之反射机制的基本概念
    8.18Go语言之字符串
    Debug
    Feign
    Nacos
    SpringCloud Alibaba
    SpringCloud
    Maven
    Maven
    Jenkins
  • 原文地址:https://www.cnblogs.com/melao2006/p/5116634.html
Copyright © 2020-2023  润新知