I have a div with a Youtube video embedded via iframe.
4条回答 花落未央 (楼主) 2021-02-15 18:50 If you still want to continue using the iframe code, you can remove the iframe src by calling removeAttr (instead of trying to set it to blank). $('#video iframe').removeAttr('src') 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
If you still want to continue using the iframe code, you can remove the iframe src by calling removeAttr (instead of trying to set it to blank).
$('#video iframe').removeAttr('src')