app中Webview实现下载表格

时间:2022-06-20 11:37:32
   <script type="text/javascript">
function getUrl(){
var close = confirm("请点击确定下载表格后到相关部门申请");
if (close) {
if (navigator.userAgent.match(/Android/i)) {
window.call.download("http://www.zbgh.org.cn/appUnion/img/yiwaishanghai.docx");
}
}
} </script>
<div class="col-xs-12" style="padding: 0">
<a href="javascript:">
<div class="list" onclick="getUrl();">
&nbsp; &nbsp; <img src="../img/icon-6.png" style="width: 20%;">
&nbsp;&nbsp;<span style="font-size:18px;" >我要申请</span>
<img src="../img/point.png" class="point">
</div>
</a>
</div>