zoukankan      html  css  js  c++  java
  • layer弹窗的基本使用

    //开启弹窗
    
    function showCus(cus) {
    layer.open({
    type : 2,
    title : ' ',  //弹窗标题
    maxmin : true,
    shadeClose : true, //点击遮罩关闭层
    closeBtn : 1,  //关闭按钮
    area : [ '600px', '400px' ],  //弹窗尺寸
    content : '${ctx}/psi/money/showCus?cus=' + cus  //url
    });
    }
    
    //关闭弹窗
    
    function sub() {
    var fmr = $("#fm").serialize();
    var skmoney = $("#skmoney").val();
    $.ajax({
    async:true,
    url:"${ctx}/psi/money/receivablesById",
    data:$("#fm").serialize(),
    type:"POST",
    success:function(data){
    if(data){
    var index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index); //弹出窗是新的页面的时候
    window.parent.location.reload();//刷新父页面
    }else{
    var index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index); //弹出窗是新的页面的时候
    window.parent.location.reload();//刷新父页面
    }
    },
    error:function(){
    alert("收款失败!!!")
    var index=parent.layer.getFrameIndex(window.name);
    parent.layer.close(index); //弹出窗是新的页面的时候
    window.parent.location.reload();//刷新父页面
    },
    dataType:"json"
    });
    }
    

      

      

      

  • 相关阅读:
    word2vec模型评估方案
    分词问题整理和发现
    11.1第一次相似度算法测试结果
    如何使用向量代表文档doc或者句子sentence
    fasttext学习笔记
    传统变量抽样
    统计抽样与非统计抽样
    误受风险和误拒风险
    企业所得税怎么算
    进一步审计程序
  • 原文地址:https://www.cnblogs.com/ZhangHaiBK/p/8988646.html
Copyright © 2011-2022 走看看