<video ng-src="/uploadfile/upload/image/{{videosrc}}" controls="controls"></video>
当我把video换成img的时候,是能看到{{videosrc}}的值的
video
img
{{videosrc}}
欢迎选择我的课程,让我们一起见证您的进步~~
<video ng-src="trustSrc(videosrc)" controls="controls"></video>
//controller 依赖 $scope, $sce $scope.trustSrc = function(url){ return $sce.trustAsResourceUrl(url); }
参考:https://code.angularjs.org/1.4.6/docs/api/ng/service/$sce
src中不能有多余的路径 就ok了,<video ng-src="{{videosrc}}"></video>
<video ng-src="{{videosrc}}"></video>
参考:https://code.angularjs.org/1.4.6/docs/api/ng/service/$sce
src中不能有多余的路径 就ok了,
<video ng-src="{{videosrc}}"></video>