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

             } ]

  • 相关阅读:
    单词方阵【DFS】
    关于vs扩展下载慢的问题。(更改一下,补充)
    归并排序的应用
    用qt做了个简易音乐播放器(零基础真的是太难了)
    实操理解微软所说的“物理文件位置”和“逻辑文件位置”的区别
    获取指定数量的容器的各自的所有元素,并可对容器分页
    [备忘]silverlight中关于“复制到输出目录”和“生成操作”
    [备忘]silverlight中播放视频路径问题
    与并行相关的常见概念
    巧用vs的PostBuildEvent
  • 原文地址:https://www.cnblogs.com/jsingleegg/p/3489186.html
Copyright © 2011-2022 走看看