可复用的 (普通的在function中找) : 点击事件之后的函数
$rootScope.confirm = function(content, okFn, cancelFn) { var modal = $modal({ html: true, show: false, templateUrl: 'views/template/ptteng-confirm-0.0.1.html', controller: function($scope) { $scope.content = content; $scope.ok = function() { typeof okFn == 'function' && okFn(); modal.$promise.then<