app中Webview实现下载表格
<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();"> <img src="../img/icon-6.png" style="width: 20%;"> <span style="font-size:18px;" >我要申请</span> <img src="../img/point.png" class="point"> </div> </a> </div>