zoukankan      html  css  js  c++  java
  • day65—angularJS的学习笔记1

     转行学开发,代码100天—2018-05-20

    AngularJS的引用示例:

    <!DOCTYPE html>
    <html>
    <head>
        <title>angularJS 示例</title>
        <script type="text/javascript" src="js/angular.min.js"></script>
         <script type="text/javascript">
            // var myApp = angular.module('myApp',[]);
            // myApp.controller('controller1',function($scope) {
            //     $scope.helloTo={};
            //     $scope.helloTo.title = "this is a angularJS";
            // });
            angular.module('myApp',[]).controller('controller1',function($scope){
             $scope.helloTo={};
             $scope.helloTo.title = "angularJS";
            });
        </script>
    </head>
    <body ng-app="myApp">
     <div ng-controller="controller1">welcome to {{helloTo.title}}</div>
    </body>
    </html>

  • 相关阅读:
    TSQL语句
    约束
    数据库创建
    递归
    函数
    结构体
    集合
    jquery中的select
    正则表达式
    多表单提交
  • 原文地址:https://www.cnblogs.com/allencxw/p/9074067.html
Copyright © 2011-2022 走看看