jc_dreaming 发表于 2013-2-6 08:40:15

JS中变量时注意事项

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";。

注意引用的区别。
页: [1]
查看完整版本: JS中变量时注意事项