I learned another trick today. I didn’t know it before, but I have done too few things...
Goal: To achieve a pop-up file download dialog box when clicking a link
Code:
If the browser supports the format that can be opened, it will open it directly online by default (such as word or picture). If the format is not supported, it will pop up a download prompt. It is best to make it into a .rar format file