amp-html - 如何将一个 amp-story-page 链接到另一个?
问题描述
所以,我目前正在使用AMP(amp-story)制作故事,我想知道如何放置一个从一个页面切换到另一个页面的按钮。例如,让您从第 5 页转到第 8 页而不是第 6 页的按钮。
目的是允许用户跳过一些内容。amp-story 是否也允许隐藏页面(除非您按下按钮否则无法访问的页面)?
我尝试的大多数事件都向我显示_ is not whitelisted
了控制台上的“”错误。
谢谢。
解决方案
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).
推荐阅读
- 3d - 如何将 .vti 文件转换为其他格式
- javascript - 兄弟组件通信在vue中不起作用
- html - 选择第二个匹配的类项,而不是 CSS 中的元素
- haskell - 为什么对 StateT 定义没有 typelcas 约束
- python - 在 python 中重塑大熊猫数据框
- java - Shedlock:使用属性文件中的 lockAtMostForString
- vue.js - 带有固定列的vue可拖动表格
- android - 即使下载不成功(空间不足时),也得到“DownloadManager.STATUS_SUCCESSFUL”
- json - 如何将 prop 的值存储在变量中,然后在反应中访问它?
- google-chrome-extension - Chrome 扩展中的 Bootrstrap 4 模态