vue.js 从后台拿数据播放视频 :src
v-bind:简写为:属性要用v-bind<el-collapse-item v-for="(val,index) in problemList" :key="index" :title="val.problemTitle"><div v-html="val.problemContent" style="color:#38adff"&g...
·
v-bind: 简写为 : 属性要用v-bind
<el-collapse-item v-for="(val,index) in problemList" :key="index" :title="val.problemTitle">
<div v-html="val.problemContent" style="color:#38adff">{{ val.problemContent }}</div>
<video width="320" height="240" controls="controls" v-if='val.videoUrl'>
<source :src="val.webUrl + val.videoUrl +''" type="video/ogg">
Your browser does not support the video tag.
</video>
</el-collapse-item>
</el-collapse>
更多推荐
已为社区贡献10条内容
所有评论(0)