easyui刷新当前tab页

$('#main-tab').tabs('add', {
                title: config.title,
                content: tabHtml,
                id: config.id,
                cls: "ex-tab",
                closable: true,
                fit: true,
                border: false,
                tools: [{
                    iconCls: 'icon-reload',
                    handler:function(){
                        //选中当前tab页
                        $('#main-tab').tabs('select',config.title);
                        //获取选中的tab页
                        var tab = $('#main-tab').tabs('getSelected');
                        //刷新
                        $('#main-tab').tabs('update',{
                            tab:tab,
                            options:{
                                title:config.title,
                                href:config.url
                            }
                        });
                        // tab.panel('refresh');
                    }
                }]
            });

猜你喜欢

转载自blog.csdn.net/qq_41912406/article/details/88963666