js代码如下:
function exportTable(){
var prjId=<s:property value='adcProject.projectId'/>;
console.log("PID为:"+PID);
console.log("projectid为:"+prjId);
$.post("${basePath}/xmgl/project_exportTableBysrcInfoAndActivity.action",{pid:PID,projectId:prjId,activityCell:exportActivity,plantid:PLANTID},function(data){
if(data!=null && data.substring(0,1)!='f'){
window.open(data);
}else{
alert(data.substring(1));
}
});
}
同一账号登录调用这个function,不管用哪个浏览器,都可能出现不同的结果,有时正常,有时变成传参错误,对于兼容性一窍不通的小白真的是搞得晕头转向了,求大神解决~