沒有傘的孩子只能快跑,如若不跑,只有一個結果:超過你的人回頭鄙視你
阿新 • • 發佈:2019-01-22
一.js a.'${pageContext.request.contextPath}'//結果:/projectName b.'<%=request.getContextPath()%>'//結果:/projectName 用法: <script> function searchData(dom){ $(dom).attr('disabled', true); var url = '${pageContext.request.contextPath}/OrderController/getOrders.mmx?'+$('#orderForm').serialize(); var url = '<%=request.getContextPath()%>'+'/OrderController/getOrders.mmx?'+$('#orderForm').serialize(); $('#dataDiv').html('資料載入中...').load(url, function(){ $(dom).attr('disabled', false); }); } <script>
二.jsp a.<%=request.getContextPath()%>//結果:/projectName b.${pageContext.request.contextPath}//結果:/projectName 用法: <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/order/css/OrderCss.css" /> <link rel="stylesheet" type="text/css" href=<%=request.getContextPath()%>+"/order/css/OrderCss.css" />