日期:2014-05-16  浏览次数:20347 次

JS 中 使用EL & JSTL 取值

JS 中 也可以使用EL& JSTL

var step = "<c:out value='${step}' default='0'/>"; 

switch(step) {
   case "0":
   .....................

   default:
       break; 
}

?

?

var total = <c:out default="0" value="${total}"/>;
var orderPrice=<c:out value='${packageProductOrder.order.sum}'/>;

?

<c:set scope="page" var="singleProductSize" value="0"/>

?

?

?

<c:forEach items="${packageLine.journeys}" var="journeysItem" varStatus="loopStatus">

?

?

?

?

?

?

?

?