添加新群号

This commit is contained in:
RuoYi
2019-03-18 11:55:21 +08:00
parent fc51f0ce80
commit cd199be6aa
5 changed files with 6 additions and 2 deletions

View File

@ -1059,10 +1059,12 @@
random: function (min, max) {
return Math.floor((Math.random() * max) + min);
},
// 判断字符串是否是以start开头
startWith: function(value, start) {
var reg = new RegExp("^" + start);
return reg.test(value)
},
// 判断字符串是否是以end结尾
endWith: function(value, end) {
var reg = new RegExp(end + "$");
return reg.test(value)