用js完成下载功能(window.open(url))

<!DOCTYPE html><html><head lang="en">    <meta charset="UTF-8">    <title></title></head><body><script>    function downLoad(){        window.open("http://ip/apkVersion/Setup.exe");    }</script><a href="#" onClick="downLoad()">点击下载</a></body></html>注:可是这种方式存在跨域问题,网页和包须要在同一个服务器上
相关文章
相关标签/搜索