要访问初始html,可以
$transclude在指令控制器内使用。与早期版本相比,此更改略有不同,因此假设使用1.2
controller:function($scope,$transclude){ $transclude(function(clone,scope){ $scope.buttons=angular.element('<div>').append(clone).html(); }); }**[DEMO](http://plnkr.co/edit/tArVj75kcE6atfjyhnK3?p=preview)**



