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,
            });

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

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

  • 相关阅读:
    Vue 项目刷新当前页面
    Vue 使用 vue-echarts 图表插件
    Vue 路由跳转、传参、接参四种方式
    webpack 之 proxyTable 设置跨域
    二元函数的梯度下降法求解
    2020暑期华为勇敢星实习总结
    时间序列预测算法-ARIMA算法
    航天一院介绍
    腾讯数据分析笔试
    C# Fleck的WebSocket使用
  • 原文地址:https://www.cnblogs.com/Web-Architecture/p/9330720.html
Copyright © 2011-2022 走看看