跳转到幻灯片 4.5.0

¥Jump to Slide 4.5.0

你可以使用 reveal.js 的跳转幻灯片快捷方式跳转到特定幻灯片。工作原理如下:

¥You can skip ahead to a specific slide using reveal.js' jump-to-slide shortcut. Here's how it works:

  1. 按 G 键激活

    ¥Press G to activate

  2. 输入幻灯片编号或 ID

    ¥Type a slide number or id

  3. 按 Enter 键确认

    ¥Press Enter to confirm

导航至幻灯片编号

¥Navigating to Slide Number

跳转到幻灯片时,你可以输入数值或字符串。如果你提供一个数字,reveal.js 将导航到所需的幻灯片编号。如果你输入一个字符串,reveal.js 将尝试查找使用匹配的 id 滑动并导航至该 id

¥When jumping to a slide you can either enter numeric value or a string. If you provide a number reveal.js will navigate to the desired slide number. If you type a string, reveal.js will try to locate a slide with a matching id and navigate to it.

以下是一些不同输入及其导航效果的示例。

¥Here are a couple of examples of different input and their resulting navigation.

输入结果
5导航到幻灯片编号 5
6/2导航到水平幻灯片 6,垂直幻灯片 2
the-end导航到具有此 ID (<section id="the-end">) 的幻灯片

禁用跳转到幻灯片

¥Disable Jump to Slide

跳转到幻灯片功能默认启用,但如果你想关闭它,可以将 jumpToSlide 配置值设置为 false

¥Jump to Slide is enabled by default but if you want to turn it off you can set the jumpToSlide config value to false.

Reveal.initialize({
  jumpToSlide: false,
});