data-block-on-consent="_till_responded" 是否仅适用于放大器组件?

Does data-block-on-consent="_till_responded" only work on amp components?

我尝试将 data-block-on-consent="_till_responded" 应用于常规 HTML 标签,例如 <div>,但没有用。

我通读了 AMP consent documentation 但找不到任何明确的指标。是否仅限于 AMP 组件使用?

data-* attributes 在 HTML 中没有特殊含义,默认情况下什么也不做。它们只是用来存储一些自定义信息。

为了使其像在 AMP 中一样工作,您需要使用 JS 开发您自己的此功能实现。

由于 AMP 是开源的,you may even check how this functionality is implemented in AMP