Blame view

vendor/bower-asset/jquery.inputmask/README_phone.md 577 Bytes
2e86c939   xu   “首次提交”
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# phone extensions

In the inputmask.phone.extensions you can find the abstractphone alias which is like the base for the phone aliases.
In the extra/phone-codes folder you find some implementations.

You need to include the inputmask.phone.extensions.js and the phonecodes from within the extra folder to use the phone alias.


```javascript
$(selector).inputmask("phone", {
  onKeyValidation: function () { //show some metadata in the console
    console.log($(this).inputmask("getmetadata")["city"]);
  }
});
```


## Aliases
- phone
- phonebe
- phonenl
- phoneru
- phoneuk