zoukankan      html  css  js  c++  java
  • 四十一、下载附件

    //文档下载
    			startDownLoad(metarId, taskId, smsId, stsId) {
    				var params = {
    					id: metarId,
    					taskId: taskId,
    					smsId: smsId,
    					stsId: stsId,
    				}
    				//var json = JSON.stringify(params);
    				//下载附件
    				let urlStr = window.location.href;
    				if(urlStr.indexOf("index.html") != -1) {
    					var href = window.location.href.substring(0, window.location.href.indexOf("index.html")) + "myCourses/downDocFile?id=" + metarId + "&taskId=" + taskId + "&smsId=" + smsId + "&stsId=" + stsId;
    					window.open(href);
    				} else {
    					var url = window.location.href.substring(0, window.location.href.indexOf("index.html")) + "myCourses/downDocFile?id=" + metarId + "&taskId=" + taskId + "&smsId=" + smsId + "&stsId=" + stsId;
    					window.open(url);
    				}
    			},
    

      

  • 相关阅读:
    第22章 算法
    第二十一章 数据结构
    mysql 索引
    MySQL 视图
    MySQL 子查询
    MySQL 批量更新数据
    MySQL 默认值
    Spring 整体架构和环境搭建
    python之字符串
    python学习
  • 原文地址:https://www.cnblogs.com/deng-jie/p/10789358.html
Copyright © 2011-2022 走看看