Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
390 views
in Technique[技术] by (71.8m points)

html - href =“ tel:”和手机号码(href=“tel:” and mobile numbers)

If I use tel: I should write the international phone code, like that.

(如果我使用tel:我应该这样写国际电话代码。)

<a href="tel:+6494461709">61709</a>

So far, so good, but I can't find information on how to write a cell phone number in an "international" way, if there is one.

(到目前为止,还算不错,但是如果有的话,我找不到有关如何以“国际”方式写手机号码的信息。)

  ask by Sebastian Starke translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When dialing a number within the country you are in, you still need to dial the national trunk number before the rest of the number.

(在您所在国家/地区内拨打号码时,仍然需要先拨打国家中继号码。)

For example, in Australia one would dial:

(例如,在澳大利亚,您会拨打:)

   0 - trunk prefix
   2 - Area code for New South Wales
6555 - STD code for a specific telephone exchange
1234 - Telephone Exchange specific extension.

For a mobile phone this becomes

(对于手机来说,这变成了)

   0 -      trunk prefix
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

Now, when I want to dial via the international trunk, you need to drop the trunk prefix and replace it with the international dialing prefix

(现在,当我想通过国际中继拨号时,您需要删除中继前缀并将其替换为国际拨号前缀。)

   + -      Short hand for the country trunk number
  61 -      Country code for Australia
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

This is why you often find that the first digit of a telephone number is dropped when dialling internationally, even when using international prefixing to dial within the same country.

(这就是为什么您经常发现在拨打国际电话时,即使使用国际前缀在同一国家/地区内拨打电话时,电话号码的第一位数字也被丢弃的原因。)

So as per the trunk prefix for Germany drop the 0 and add the +49 for Germany's international calling code (for example) giving:

(因此,按照德国中继线前缀,0删除,然后将+49用作德国的国际电话代码 ,例如:)

 <a href="tel:+496170961709" class="Blondie"> Call me, call me any, anytime <b>Call me (call me) I'll arrive</b> When you're ready we can share the wine! </a> 


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...