代码之家  ›  专栏  ›  技术社区  ›  Archer_A

在引导程序中禁用上一个按钮

  •  0
  • Archer_A  · 技术社区  · 6 年前

    像这样旅游

    var TourToolTipPoolConfiguration = new Tour({
                name: 'TourToolTipPoolConfiguration',
                steps: [
                    {
                        onNext: function (TourToolTipPoolConfiguration) {
                            TourToolTipPoolConfiguration.goTo(3);
                        },
                        element: "#TimeExpireTicket",
                        title: "foo",
                        content: "test1"
                    },
                    {
                        element: "#DayNumber",
                        title: "foo",
                        content: "test2"
                    },
                    {
                        element: "#SavePoolConfig",
                        title: "foo",
                        content: "test3"
                    }
                ]
            });
    

    步骤1或步骤2是可选的,我隐藏了div显示:none,但如果在步骤2中tour init,我需要禁用prev按钮,因为步骤1是隐藏的,如何做到这一点?如果div可见但不起作用,我尝试使用prev evaluate

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  0
  •   Hassan ALAMI    6 年前

    您可以使用css简单地隐藏它:

    button[data-role='prev'] {
      display: none;
    }
    
    推荐文章