<tr>
<td style="${fontcolor}" align="center">${price.goodscode}</td>
<td style="${fontcolor}" align="center">${price.goodsname}</td>
<td style="${fontcolor}" align="center">${price.assitAttrName}</td>
<td style="${fontcolor}" align="center">${price.customercode}</td>
<td style="${fontcolor}" align="center">${price.customername}</td>
<td style="${fontcolor}" align="center">${price.model}</td>
<td style="${fontcolor}" align="center">${price.price}</td>
<td width="154" align="center">
<a href="javascript:void(0)" onclick="btn_up_price(this,'${price.id}','${price.minprice}')" id="firstbtn">保存</a>
<a href="javascript:void(0)" onclick="deleteRecord(this,'${price.id}');">删除</a>
<c:if test="${price.auditstatus == 1}">
<a href="javascript:void(0)" onclick="auditRecord(this,'${price.id}');">审核</a>
</c:if>
</td>
</tr>
</c:forEach>
我如何在点击保存的时候把当前点击的这一行数据拿到?我想直接传一个对象,如果一个一个写太麻烦 。然后发过去的参数在data里面如何写? 求大神 function btn_up_price(objd,id,minprice){
$.ajax({
url: "<%=request.getContextPath()%>/admin/priceAction.do?method=updatePrice",
type:"POST",
data:,
success: function(result){
if(result.sucess){
alert("xxx");
}
}
});
}