Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
27dee2a6
Commit
27dee2a6
authored
Oct 15, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加16号段的电话号码验证
parent
260feb7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js
+1
-1
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/validate/jquery.validate.extend.js
View file @
27dee2a6
...
...
@@ -8,7 +8,7 @@ $(document).ready(function(){
//手机号码验证身份证正则合并:(^\d{15}$)|(^\d{17}([0-9]|X)$)
jQuery
.
validator
.
addMethod
(
"isPhone"
,
function
(
value
,
element
){
var
length
=
value
.
length
;
var
phone
=
/^1
[
3|4|5|7|8
][
0-9
]\d{8}
$/
;
var
phone
=
/^1
[
3|4|5|
6|
7|8
][
0-9
]\d{8}
$/
;
return
this
.
optional
(
element
)
||
(
length
==
11
&&
phone
.
test
(
value
));
},
"请填写正确的11位手机号"
);
//电话号码验证
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment