zoukankan      html  css  js  c++  java
  • artdialog自定义多个按钮

    在实际运用到的过程中artdialog弹出框下面的按钮不止一个

     可以自己定义多个按钮

    function view_show(cust_id){
    $.dialog({
            id: 'view_cust',
             '737px',
            title: '客户信息查看',
            lock: true,
            button:[
                    {name:'上一条',
                        callback:function(){
                            cust_id = c.getPrevCustomer(cust_id);
                            if(!cust_id){
                                return false;
                            }
                            this.content('<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>');
                            return false;
                            }
                    },
                    {name:"下一条",
                         callback:function(){
                            cust_id =  c.getNextCustomer(cust_id);
                            if(!cust_id){
                                return false;
                            }
                            this.content('<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>');
                            return false;
                        }
                    }],
            content: '<iframe id="customer_view" src="http://'+crm_host+'/?controller=view&action=custinfo&arg='+arg+'&cust_id='+cust_id+'" frameborder="0" width="735" height="426"></iframe>'    
        });
    }

    具体的格式:

            button:[ {

         name:'名字',
                        callback:function(){}

              },

             {name:'名字',
                        callback:function(){}         

             } ]

  • 相关阅读:
    SpringCloud2.0 Eureka Client 服务注册 基础教程(三)
    美国会计准则 Generally Accepted Accounting Principles (GAAP) 与 中国会计准则
    JavaScript的订阅者模式--实现一个简单的事件监听框架
    设计模式在外卖营销业务中的实践
    20行代码做一个简易微信群发工具需要哪些单词
    南怀瑾老师:一阴一阳之谓道,是个什么道?
    怎么追女生?
    正态分布(Normal distribution)也称“常态分布”,又名高斯分布
    广义线性模型
    逻辑回归表达式
  • 原文地址:https://www.cnblogs.com/jsingleegg/p/3489186.html
Copyright © 2011-2022 走看看