The AMP One Tap component is deprecated. This means that new web apps shouldn't use this component, and developers of the existing apps should follow the
migration guide to make any necessary changes to avoid negative impacts for user sign-in to their websites.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
发送反馈
AMP Component API 参考文档
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本参考页面介绍了 <amp-onetap-google> AMP 组件的 API。
如需了解如何使用中间 iframe,请参阅使用 iframe 集成一键式登录 指南。
加载 <amp-onetap-google> AMP 组件
将以下代码段放入您要使用 <amp-onetap-google> AMP 组件的任何 AMP 网页中:
<script custom - element = "amp-onetap-google" src = "https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js" async ></script >
<amp-onetap-google> AMP 组件
下表列出了数据属性及其说明:
data-src
此属性是您的一键式中间 iframe 的 URI。如需了解详情,请参阅下表:
类型
是否必须提供
示例
字符串
是
data-src="https://example.com/onetap_iframe.html"
布局
此属性是 AMP 组件的布局,是 AMP 组件的必需属性。对于 <amp-onetap-google> 组件,只能使用“nodisplay”。如需了解详情,请参阅下表:
类型
是否必须提供
示例
字符串
是
layout="nondisplay"
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
需要向我们提供更多信息?
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-08。"],[],[]]