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();">
                     &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>

 

posted @ 2016-08-01 15:53  骏码信息  阅读(345)  评论(0编辑  收藏  举报