可以在指令内部通过匿名构造函数的方式来定义一个内联的控制器 angular.module('myApp',[]) .directive('myDirective', function() { restrict: 'A', ...
確定! 回上一頁