1. Use the a tag to download the attributes
<a href="http://www.baidu.com" download>download</a>
2.window.location.href = "path"
window.location.href="http://www.baidu.com"
Three.window.open("path")
window.open("http://www.baidu.com")
Expansion: The
difference between window.location.href and window.open
https://www.cnblogs.com/summary-2017/p/9462456.html