如何使用href下载excel [英] How to download excel using href
本文介绍了如何使用href下载excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
如何使用href下载excel文件。
我有以下代码
< a href = HTTP://community.barclays.intranet/sites/satracker/_layouts/xlviewer.aspx ID = /位点/ satracker /客户%20Check%20List%20Documents /竣工%20Execution%20Agreements.xlsx&安培;来源= http%3A%2F%2Fcommunity%2Ebarclays%2Eintranet%2Fsites%2Fsatracker%2FClient%2520Check%2520List%2520Documents%2FForms%2FAllItems%2Easpx& DefaultItemOpen = 1 target = _ blank > < span > 执行协议< / span > < / a >
点击它,它应该下载href路径中提供的excel。
下载属性不适用于IE。
我尝试过:
执行协议
解决方案
< a href =http://community.barclays.intranet/sites/satracker/Client%20Check%20List%20Documents /Completed%20Execution%20Agreements.xlsxtarget =_ blank>执行协议< / a>
Hello,
How to download excel file using href.
I have a following code
<a href="http://community.barclays.intranet/sites/satracker/_layouts/xlviewer.aspx?id=/sites/satracker/Client%20Check%20List%20Documents/Completed%20Execution%20Agreements.xlsx&Source=http%3A%2F%2Fcommunity%2Ebarclays%2Eintranet%2Fsites%2Fsatracker%2FClient%2520Check%2520List%2520Documents%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1" target="_blank"><span>Execution Agreements</span></a>
BY clicking on it, it should download the excel provided in href path.
download attribute is not working on IE.
What I have tried:
Execution Agreements
解决方案
Pls try this way:
<a href="http://community.barclays.intranet/sites/satracker/Client%20Check%20List%20Documents/Completed%20Execution%20Agreements.xlsx" target="_blank">Execution Agreements</a>
这篇关于如何使用href下载excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文