2

所以,我目前正在使用AMP(amp-story)制作故事,我想知道如何放置一个从一个页面切换到另一个页面的按钮。例如,让您从第 5 页转到第 8 页而不是第 6 页的按钮。

目的是允许用户跳过一些内容。amp-story 是否也允许隐藏页面(除非您按下按钮否则无法访问的页面)?

我尝试的大多数事件都向我显示_ is not whitelisted了控制台上的“”错误。

谢谢。

4

1 回答 1

4

Currently, this is not possible.

Within AMP stories, this feature is called "branching" and is tracked in this GitHub issue. The specific functionality that you are asking about is the first line item mentioned in that issue: "...an AMP action... that can be used to jump to another page".


EDIT (April 2019):

Stories now have branching available experimentally, while still under development. This allows user interactivity by splitting content state across different pages of the same story (see the work in progress documentation).

于 2018-08-15T21:19:19.450 回答