<script> (function ($) { $(document.body).on('mousemove scroll', function () { var fun = function (event) { $('audio,video').each(function (index, item) { if (item !== event.target) { item.pause(); } }); } $('audio,video').off('playing', fun); $('audio,video').on('playing', fun); }); }($)); </script>
jquery多个视频音频同时只播放一个
最新推荐文章于 2023-12-01 11:25:26 发布