现在运行这个我收到错误: GET http://localhost:8100-6ren">
gpt4 book ai didi

angularjs - AngularJS 中的

转载 作者:行者123 更新时间:2023-12-02 22:45:30 26 4
gpt4 key购买 nike

我编写了以下代码:

<div class="item item-input video-preview-container" ng-if="thumbnail.length > 0">
<video poster="{{thumbnail}}" ng-src="{{clipSrc}}" class="centerme margin-vert-2x" controls="controls" preload="metadata" webkit-playsinline="webkit-playsinline"></video>
<i class="ion ion-android-cancel fs30 margin-left-2x" ng-click="removeVideo()"></i>
</div>

现在运行这个我收到错误:

GET http://localhost:8100/%7B%7Bthumbnail%7D%7D 404 (Not Found)

但是值得注意的是,当我的 div 尚未加载时,就会出现错误,因为我的 ng-if 条件仍然小于 0

更新:问题出在 poster="{{thumbnail}}" 代码上,因为当我删除此代码时,错误不会出现。

最佳答案

您尝试过使用ng-attr-poster吗?大多数时候这些问题是由于数据绑定(bind)没有发生

关于angularjs - AngularJS 中的 <video> 中的海报属性出现错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41507491/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com