line-height: 30rpx; height: 60rpx; overflow: hidden; font-size: 12px; font-weight: bold; word-break: break-all; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; /* 这里是超出几行省略 */ overflow: hidden; CSS实现文本超过部分,超出两行,超出部分省略号显示
原因:不管是移除还是暂停等等错误,都是组件切换的时候play是异步的过程,所以需要延时执行操作。setTimeout(()=>{ this.videoContext.play() this.videoContext.seek(init_time) },500) 修复The play() request was interrupted等系列问题
风里来
最后,我终于解放了我自己……