zoukankan      html  css  js  c++  java
  • 前端javascript框架之AngularJS学习笔记

    <!doctype html>
    <html lang="en" ng-app>
    <head>
    <meta charset="utf-8">
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="angular.js"></script>
    <script src="controllers.js"></script>
    <title>angularjs</title>
    </head>

    <body ng-controller="PhoneListCtrl">
    Hello {{'World'}}!
    <br/><br/>
    Your name: <input type="text" ng-model="yourname" placeholder="World">
    <hr>
    Hello {{yourname || 'World'}}!

    <p>Nothing here {{'yet' + '!'}}</p>

    <p>1 + 2 = {{ 1 + 2 }}</p>

    <ul>
    <li>
    <span>Nexus S</span>
    <p>
    Fast just got faster with Nexus S.
    </p>
    </li>
    <li>
    <span>Motorola XOOM™ with Wi-Fi</span>
    <p>
    The Next, Next Generation tablet.
    </p>
    </li>
    </ul>

    <ul>
    <li ng-repeat="phone in phones">
    {{phone.name}}
    <p>{{phone.snippet}}</p>
    </li>
    </ul>

    未完待续......

    </body>
    </html>

  • 相关阅读:
    jPlayer
    nodemon
    微信
    防盗链
    ES2015 (ES6)
    静态资源
    WebP
    Retina
    ui-grid
    React入门2
  • 原文地址:https://www.cnblogs.com/smght/p/4801087.html
Copyright © 2011-2022 走看看