How do I js the server mp3 file instead of opening it for playback on the html page?

how does the html page use js to download server mp3 files instead of opening them online for playback?

Mar.04,2021

<a href="file.mp3" download>mp3</a>

I don't know how your code works. There are two ways of thinking:
1. For server-side modification, see https://blog.csdn.net/say7512.
2.html code modification see http://www.w3school.com.cn/ta. using the download attribute of the a tag

Menu