zoukankan      html  css  js  c++  java
  • jerichotab 初始化页面显示tab页中的第一个

    tab初始化默认显示第一个内容,但是tab标签显示最后一个。

    源代码:

     $.fn.initJerichoTab({
                renderTo: '#consumable',
                uniqueId: 'jerichotab',
                contentCss: {'height': $(window).height()-197,'width':'100%'},
                tabs: [{
                    title: '需求计划',
                    closeable: false,
                    data: { dataType: 'iframe', dataLink: '' }
                },
                    {
                        title: '采购订单',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '入库验收单',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '请领单',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '配送单',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '科室领用',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '科室退货',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    },
                    {
                        title: '库存查询',
                        closeable: false,
                        data: { dataType: 'iframe', dataLink: '../requirements/planList/planList.html' }
                    }
                ],
                loadOnce: true,
                tabWidth: 120,
            });

    这个问题找了 好久,结果在源代码中发现有个默认选中某个元素的问题:

    注释掉代码就可以解决问题.

  • 相关阅读:
    Codeforces Round #696 (Div. 2) A
    软件体系结构期末复习
    LINUX 下配置 redis
    2020-09-30 刷题记录
    2020-09-29 刷题记录
    Codeforces Round #673 (Div. 2) A
    2020-09-26 刷题记录
    2020-09-25 刷题记录
    C++ 类虚函数实现原理的验证(指向包含类虚函数地址的数组的指针)
    Saleae8 与 SaleaeLogic、PulseView上位机的使用
  • 原文地址:https://www.cnblogs.com/Web-Architecture/p/9330720.html
Copyright © 2011-2022 走看看