function commonConfirm(msg,call){ showConfirmBox("消息提示",msg,call); } $(document).on('click','.jq_settle',function(){ var orderId = $(this).attr('data-id'); if(commonConfirm("确认结算订单?",function(){ $.post(base + "/order/orders/" + 'settle.json',{id:orderId},function(data){ if(data.success){ getNewspage(0); initPagination(getNewspage); } commonAlert(data.msg,3000); }); })); });