1

是否可以在 google glass 的 html 模板上有链接?

我希望用户点击时间线卡内的链接并访问网站。

谢谢普雷姆

4

1 回答 1

2

虽然您无法直接打开链接,但您可以添加一个OPEN_URI菜单项,其中包含payload与您的时间线卡相关的链接。

{
  "html": "(your card html code here)",
  "menuItems": [
    {
      "action": "OPEN_URI",
      "payload": "(your link here)"
    }
  ]
}

参考:https ://developers.google.com/glass/v1/reference/timeline#menuItems.action

于 2013-10-02T20:37:59.650 回答