<!DOCTYPE html>
<html>
 <head>
   <meta charset="utf-8">
 </head>
 <body ng-app="uniqApp">
   <div ng-controller="firstCtr">
     <p>{{123}}</p>
     <p>{{param}}</p>
   </div>
   <script type="text/javascript" src="./angular.js"></script>
   <script type="text/javascript">
     angular.module('uniqApp',[])
            .controller('firstCtr',['$scope',function(a){
                a.param='abc';
            }])
   </script></body>
</html>
angular 第一个完整小例子

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-06-06
  • 2021-07-17
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-06-24
相关资源
相似解决方案