jquery 接受上一个jsp页面url中传过来的值

function editOrder(id,detail_id){
     var url ="${pageContext.request.contextPath}/page/jsp/rental/add_edit_order.jsp?main_id="+id+"&detail_id="+detail_id;
     window.location.href = url;
     
 }

 

<script type="text/javascript"
    src="${pageContext.request.contextPath }/page/common/jquery-1.9.1.min.js"></script>

<script type="text/javascript" language="javascript">

var main_id = "${param.main_id}";//订单主表id
var detail_id = "${param.detail_id}";//订单详细表id

</script>

你可能感兴趣的:(jquery 接受上一个jsp页面url中传过来的值)