layer.confirm 防止post重复提交

layer.confirm("确定对该资源单的价格"+isa+value+"元吗!", function(index, layero){
    $(layero).find('.layui-layer-btn0').css('pointer-events','none');
    $.post('${context}/resource/resourceAction_updatePrice.action',{'viewId':id,'price':value,'isupdown':isupdown},function(data){
    location.href = '${context}/supplier/supplierAction_resourceList.action';
    });
});

 

 

源文:https://fly.layui.com/jie/399/

posted @ 2019-10-18 07:10  BloggerSb  阅读(858)  评论(0编辑  收藏  举报