function toCar()...{ var goodId = $F('goodId'); var url ='${pageContext.request.contextPath}/addToCar.html'; var pars ='goodId='+ goodId; var myAjax =new Ajax.Request( url, ...{ method: 'get', parameters: pars, onComplete: showResponse }); }
function currentShopCar()...{ var url ='${pageContext.request.contextPath}/currentShopCar.html?goodId=${singleGoods.id}'; var myAjax =new Ajax.Request( url, ...{ method: 'get', parameters: '', onComplete: showResponse }); }