码迷,mamicode.com
首页 > Web开发 > 详细

导出字符串拼接jquery

时间:2018-07-10 20:05:47      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:导出   字符串拼接   jquer   func   var   launch   oca   ati   end   

$(".rExport").click(function () {
var exportStr = "pageSize=" + $scope.pageSize + "&pageNum=" + $scope.pageNum;
if ($scope.taskName !== "") {
exportStr += "&taskName=" + $scope.taskName;
}
if ($("#data_three").val() !== "") {
var timeStr = $("#data_three").val().split(" - ");
var effecttime = timeStr[0];
var endtime = timeStr[1];
exportStr += "&launchTime=" + effecttime + "&launchedTimeOut=" + endtime;
}
if ($scope.taskType !== -1) {
exportStr += "&taskType=" + $scope.taskType;
}
if ($scope.needAudited !== -1) {
exportStr += "&needAudited=" + $scope.needAudited;
}
window.location.href = "/Excel?" + exportStr;
})

导出字符串拼接jquery

标签:导出   字符串拼接   jquer   func   var   launch   oca   ati   end   

原文地址:https://www.cnblogs.com/loveAline/p/9291001.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!