我可以使用 PhoneGap 在 HTML 5 iPhone 应用程序中创建“呼叫”按钮吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4164642/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 05:14:40  来源:igfitidea点击:

Could I create "Call" button in HTML 5 IPhone application using PhoneGap?

iphonehtmlcordova

提问by Alexey Zakharov

Could I create "Call" button in HTML 5 IPhone application using PhoneGap? Pushing this button should invoke call to certain number on IPhone device.

我可以使用 PhoneGap 在 HTML 5 iPhone 应用程序中创建“呼叫”按钮吗?按此按钮应调用 iPhone 设备上的某个号码。

回答by Daniel A. White

If you can specify a URL for the button, use the URL format tel:phonenumber.

如果可以为按钮指定 URL,请使用 URL 格式tel:phonenumber

回答by Puddingsan

Best format is no punctuation in the number, so:

最好的格式是数字中没有标点符号,所以:

<a href="tel:+18002752273"> Call Apple Customer Support at 1-800-275-2273 </a>

回答by Majd Rashad

Use this "tel:phonenumber" it will NOT work on emulator, but it works on real device.

使用这个“电话:电话号码”它不会在模拟器上工作,但它可以在真实设备上工作。