摘要: 先上代码 ×按照以往的经验,只要使用 ng-src 捆绑数据就可以了。 但是audio无法正常绑定url数据。(省略中间各种尝试,直接上解决办法)1,对应得control中添加 $sce2,使用$sce.trustAsResourceUrl(捆绑的url)处理,然后进行捆绑就ok啦以下是示例代码,供参考functionAppCtrl($scope, $sce){// ... $scope.setProject =function(id){ $scope.currentProject = $scope.projects[id]; ... 阅读全文
posted @ 2014-03-13 10:54 rachelanlan 阅读(6018) 评论(1) 推荐(1) 编辑