• Angular学习(3)- 双向梆定


    示例代码:

    <!DOCTYPE html>
    <html ng-app="MyApp">
    <head>
        <title>Study 3</title>
        <script type="text/javascript" src="js/angular.js"></script>
    </head>
    <body>
        <div ng-controller="testController">
            <h1>{{title}}</h1>
            Name:<input type="text" ng-model="name" />
            Fraction:<input type="text" ng-model="fraction" />
            <hr />
            <h1>{{previewTitle}}</h1>
            <b>{{name}}</b>:({{fraction}})
        </div>
        <script type="text/javascript">
            var app = angular.module("MyApp", [], function() { });
            var testController = function($scope) {
                $scope.title = "Robin";
                $scope.previewTitle = "Test";
                $scope.name = "";
                $scope.fraction = "";
            }
        </script>
    </body>
    </html>
  • 相关阅读:
    奔溃瞬间1
    面试知识点blog汇总
    贪心
    树 和 图
    DFS 和 BFS
    STL
    哈希表
    手写堆
    并查集
    二项式反演学习笔记
  • 原文地址:https://www.cnblogs.com/HD/p/3630722.html
Copyright © 2020-2023  润新知