转自:https://www.cnblogs.com/best/tag/Angular/

1.

 1 <html>
 2     <head>
 3     <meta charset="utf-8">
 4     <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
 5 
 6 </head>
 7 <body>
 8     <div ng-app="" ng-init="firstName='John'">
 9        <p>姓名为<span ng-bind="firstName"></:span></p>
10         
11     </div>
12 </body>
13 </html>

 

posted on 2018-01-02 10:16  Sharpest  阅读(145)  评论(0)    收藏  举报