1.引用时js时变量注意:
//声明变量并赋值
var leavId = document.getElementById("caseForm.leavId").value;
url="${ctx}/report/printNotice.jsp?statusValue=8&bigin="+sBeginDate2+",end="sBeginDate3;
2.使用el表达式的变量:
var url = " and srType=1 and srCaseNo = ${caseForm.leavId} and sendDeptId = 108";。
注意引用的区别。
//声明变量并赋值
var leavId = document.getElementById("caseForm.leavId").value;
url="${ctx}/report/printNotice.jsp?statusValue=8&bigin="+sBeginDate2+",end="sBeginDate3;
2.使用el表达式的变量:
var url = " and srType=1 and srCaseNo = ${caseForm.leavId} and sendDeptId = 108";。
注意引用的区别。