下载伴奏
$("#bzxz").click(function(){
var a = document.getElementById(‘bzxz’);
var url = $(this).attr(‘data-url’);
a.setAttribute(‘href’, url); //a.href=‘文件链接’
a.setAttribute(‘download’, ‘MP3名称’); //a.download=‘文件名’
a.click();
})
03-23
07-25
1351
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-24