问题标签 [apple-oauth2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
24 浏览

html - 在同一个 html 页面中多次呈现“使用 Apple 登录”按钮

我正在尝试在我的网站上设置“使用 Apple 登录”按钮。我希望按钮出现在两个地方 -

  1. 在导航栏中的下拉菜单中
  2. 在侧边栏中

但是,该按钮只呈现一次——该元素首先在 html 页面中定义。例如。它只会呈现导航栏按钮。如果我将该按钮注释掉,那么它将呈现侧边栏按钮。但永远不要同时在一起。

正如文档指出的那样,我正在页面标题中加载苹果脚本;

我也在使用“使用 Google 登录”按钮,它没有这个问题。