下面的代碼運行錯誤了?為什么?版本問題嗎?怎么兼容<!DOCTYPE html><html ng-app = 'myApp'><head>? <meta charset="UTF-8">? <title></title>? <link rel="stylesheet"></head><body>?? <Lee></Lee>? <script src="https://cdn.bootcss.com/angular.js/1.5.0/angular.min.js"></script>? <script src="https://cdn.bootcss.com/angular-ui-router/1.0.0-alpha0/angular-ui-router.min.js"></script>? <script type="text/javascript">??? var myApp = angular.module("myApp",[]);??? myApp.directive('Lee',? function(){??????? // Runs during compile????? return {???????? restrict: 'A', // E = Element, A = Attribute, C = Class, M = Comment???????? template: '<div>My Name Is Lee</div>',???????? replace: true????? };??? });? </script></body></html>
angularjs 指令初級問題
qq_亞里士多德的貓_0
2016-04-10 23:16:52