Commit 33710651 authored by JingChao's avatar JingChao

Updates angular/hlsUtil.md

Auto commit by GitBook Editor
parent 2ec0eacd
...@@ -59,7 +59,17 @@ function objToString(){ ...@@ -59,7 +59,17 @@ function objToString(){
var ele = 2; var ele = 2;
hlsUtil.inArray(array,ele); hlsUtil.inArray(array,ele);
} }
```
##### 6.判断是否为11电话号码 `phoneNumber`
- 参数为`( 手机号 )`
- 通过正则表达式校验 返回 `true of false`
- 调用实例如下
```javascript
function phoneNumber(){
alert(hlsUtil.phoneNumber(18325379820));
}
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment