项目状态
该项目已弃用。
我们将为jquery.mobilePhoneNumber修补严重的安全问题,但不会添加任何新功能。
jQuery.mobilePhoneNumber
用于验证和格式化手机号码的通用库。
$ ( "input.phone-num" ) . mobilePhoneNumber ( ) ;
当用户更改电话号码的国家/地区时,您可以绑定到事件:
$ ( "input.phone-num" ) . bind ( "country.mobilePhoneNumber" , function ( e , country ) {
console . log ( "The new country code:" , country ) ;
} ) ;
您可以找到。
依存关系:
在jQuery 1.8.3和1.11.1上测试
原料药
$ .fn.mobilePhone
评论0
最新资源