将下载链接自动添加到音频嵌入的代码曾经可以工作,现在,我突然收到错误消息,说 Uncaught TypeError: $ is not a function...
我完全不明白为什么
示例链接是https://mpmania.com/download-mp3/wizkid-ghetto-love-audio/
我使用了故障排除模式,停用了所有插件,更新了过时的插件,可能有人可以帮助重写这些代码以使其正常工作
$( document ).ready(function() {
$('audio').each(function( index ) {
var source = $(this).find('source').attr('src');
if ( source != '' ) {
$(this).after('<a href="' + source + '" class="audio-download" download>Download (Alternative)</a>');
}
});
});
我基本上希望它像以前一样工作
精慕HU
相关分类