【AngularJS】没有myApp1和myApp2这两个模块,为什么还可以运行

<!DOCTYPE html>













<br> var myApp1 = angular.module(&quot;myApp1&quot;, []);<br> myApp1.controller(&quot;App1Controller&quot;, [&quot;$scope&quot;, function($scope) {<br> $scope.do1 = function() {<br> console.log(33333);<br> }<br> }]);</p> <pre><code> var myApp2 = angular.module(&quot;myApp2&quot;, []); myApp2.controller(&quot;App2Controller&quot;, [&quot;$scope&quot;, function($scope) { $scope.do2 = function() { console.log(44444); } }]); angular.bootstrap(document.querySelector(&quot;[ng-app=&#39;myApp2&#39;]&quot;), [&quot;myApp2&quot;]); angular.module(&quot;myApp&quot;, [&quot;myApp1&quot;, &quot;myApp2&quot;]); &lt;/script&gt; </code></pre> <p></body><br> </html></p>

http://www.cnblogs.com/zhaoxiaoji/p/5155599.html