时间:2021-07-01 10:21:17 帮助过:5人阅读
- <a href="#" id="help"> 帮助 </a>
- <script type="text/javascript">
- $("#help").on("click",function(){
- var flag=window.confirm("确定下载说明文档吗?"); //弹框选择是否要下载文档
- if(flag){ //如果点击“确定”按钮
- var url=contPath+'/download/使用文档.doc'; //系统中文件的位置 //contPath是系统路径
- window.location.href=url;
- }
- });
- </script>
相关推荐:
易读文档下载器 PHP如何编写易读的代码
如何把在线帮助文档下载到本地。_html/css_WEB-ITnose
MySql的存储过程学习小结 附pdf文档下载
以上就是js代码实现文档下载的方法的详细内容,更多请关注Gxl网其它相关文章!