据我所知,从2.9.0版开始,有一种方法可以在intro.js中一步设置多个div ine。但是,我有3个单独的div在一起,我如何使用document.querySelectorAll()来选择它们?我尝试过这样的方法:
element: document.querySelectorAll(div1, div2, div3)这在理论上应该是可行的,但却不可行
发布于 2020-01-14 21:24:56
{
       element: document.querySelectorAll('div1')[0],
        onboard: 'Hi i am dashboard tour .',
        position: 'right',
        highlightClass: 'transon-fix'
      },
{
        element: document.querySelectorAll('div2')[1],
        onboard: 'Hi i am dashboard tour .',
        position: 'right',
        highlightClass: 'transon-fix'
      },
{
        element: document.querySelectorAll('div3')[2],
        onboard: 'Hi i am dashboard tour.',
      },https://stackoverflow.com/questions/59309528
复制相似问题