angular.js 引入angular.js文件
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <script src="angular.js" ></script> <title></title> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController"> {{firstName}} {{lastName}} </div> </div> <script type="text/javascript"> var app = angular.module("myApp",[]); app.controller('firstController', function($scope){ $scope.firstName="张三"; $scope.lastName="李四"; }) </script> </body> </html>
作者:Work Hard Work Smart
出处:http://www.cnblogs.com/linlf03/
欢迎任何形式的转载,未经作者同意,请保留此段声明!