我解决了传递整个applet声明的问题。这样,它可以正常工作。
控制器:
angular.module('jworkApp') .controller('AppletCtrl',['$scope', '$sce', function ($scope, $sce) { $scope.b64 = 'AAAA'; $scope.applet = "<APPLET>"+ "<PARAM name="testo" VALUE=""+$scope.b64+"" />"+ "</APPLET>"; $scope.getAppletCode = function() { return $sce.trustAsHtml($scope.applet); }; }]);视图:
<div ng-bind-html="getAppletCode()"></div>



