开发者

How can we format a telephone number using Javascript

开发者 https://www.devze.com 2023-02-15 10:42 出处:网络
Can anyone let me know how 开发者_Python百科can I format a telephone number automatically using javascript.

Can anyone let me know how 开发者_Python百科can I format a telephone number automatically using javascript. I have seen some of the code samples in the internet....But my point is not all the countries have the country code just 3 numbers.....and moreover if someone write the country code 0091 and the number will be like 9878...... Then the codes I have seen in the internet formats them like (009)-(19878...) . If u see the country code will be taken wrong ......

Can someone clear out this

Thanks


Try to look at libphonenumber:

http://code.google.com/p/libphonenumber/

0

精彩评论

暂无评论...
验证码 换一张
取 消