Google 文档中可点击的电话号码

Ahm*_*met 6 google-docs hyperlink phone-call

有没有一种方法,使电话号码,点击谷歌文档类似于微软Word 喜欢这里

请注意,这可以在 Google 表格中使用=HYPERLINK("tel:1234567890", "Call Me"). 我要文档。

谢谢你。

Ada*_*itz 12

telGoogle 文档现在通过添加后跟电话号码的超链接来支持呼叫/电话链接。

例子

  • 我们 -tel:1234567890
  • 国际-tel:+11234567890

单击该链接时,浏览器会显示呼叫提示。


ale*_*e13 6

不幸的是,没有直接的方法可以做到这一点,但您可以使用 Apps 脚本并部署一个 Web 应用程序来解决您的问题。

您必须使用 Apps 脚本脚本编辑器使用此脚本:

function doGet(e) {
  return HtmlService.createHtmlOutput("<script>window.location.href='tel:" + e.parameter.tel + "';</script>");
}
Run Code Online (Sandbox Code Playgroud)

该代码包含一个doGet(e)发送 HTTPGET请求并返回一个新HtmlOutput对象的函数,该对象将您选择的电话号码作为参数。

之后,您必须将此脚本部署为 Web 应用程序,然后您将获得与其对应的 URL。

如果您想在 Google Docs 中使用它,您可以创建一个由以下链接组成的链接:

your-web-application-URL+?tel=the-phone-number-you-want .

此外,这里有一些可能对您有所帮助的链接:

  1. 应用程序脚本

  2. 谷歌网络应用程序

  3. HtmlService 类

  4. 在 Google Docs 中创建链接