bar*_*o32 6 javascript google-oauth
突然开始从 Google 登录脚本中收到错误。
https://accounts.google.com/gsi/client中的 _.$e 处出错
看来 Google 已将类型renderButton width从更改string为number。
破碎的:
window.google.accounts.id.renderButton(button, {width: '200'});
Run Code Online (Sandbox Code Playgroud)
在职的:
window.google.accounts.id.renderButton(button, {width: 200});
Run Code Online (Sandbox Code Playgroud)
他们尚未更新文档:https://developers.google.com/identity/gsi/web/reference/js-reference#width
小智 5
如果您以不带“px”后缀的字符串格式指定按钮宽度,则最近的更新会破坏它。
window.google.accounts.id.renderButton(button, {width: '300px'});
Run Code Online (Sandbox Code Playgroud)
应该管用。
| 归档时间: |
|
| 查看次数: |
998 次 |
| 最近记录: |