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(){}         

             } ]

  • 相关阅读:
    怎么把pdf转换成word文件
    怎么把pdf文件转换成word文件教程
    pdf转换成word转换器哪个好用
    pdf格式怎么转换成word格式
    pdf文件怎么转换成word教程
    怎么把pdf文件转换成word文件
    福大软工1816 · 第二次作业
    福大软工1816 · 第一次作业
    ER图
    数据定义分析、数据操纵分析、数据完整性分析、数据安全性分析、并发处理分析、数据库性能分析
  • 原文地址:https://www.cnblogs.com/jsingleegg/p/3489186.html
Copyright © 2011-2022 走看看