embed 使用angularjs 的变量作为src不能正确运行,直接写死src就没问题;
代码在:http://www.jscssshare.com/#/sample/z7PclLvl
<div ng-app="app" ng-controller="ctrl">
<embed src="https://v.qq.com/iframe/preview.html?vid=n0196w4dcw1&width=500&height=375&auto=0" class="work"/>
<dmbed src="{{videoUrl}}" class="nowork"></dmbed>
</div>
<script>
var app = angular.module("app",[]);
app.controller("ctrl",["$scope",function($scope){
$scope.videoUrl = "https://v.qq.com/iframe/preview.html?vid=n0196w4dcw1&width=500&height=375&auto=0";
}]);
</script>