使用范围:WX
Contents
class Util ($UI/wxsys/lib/base/util)
Util工具类
Constructor Top
Util () |
Static Methods Top
Array | arrayPush (Array array, Any obj) | |
Array | arrayPushObj (Any obj) | |
Array | arraySplice (Array array, Any obj) | |
object | iif (Boolean condition, object trueValue, object falseValue) | |
Boolean | isArray (Any value) | |
Boolean | isBoolean (Any value) | |
Boolean | isFunction (Any value) | |
Boolean | isObject (Any value) | |
Boolean | isString (Any value) | |
Boolean | testBankNO (String value) | |
Boolean | testChinese (String value) | |
Boolean | testEmail (String value) | |
Boolean | testIDCard (String value) | |
Boolean | testInteger (String value) | |
Boolean | testLength (String value, Integer min, Integer max) | |
Boolean | testMobile (String value) | |
Boolean | testMobilephoneNumber (String value) | |
Boolean | testNotSpecialChar (String value) | |
Boolean | testNumber (String value) | |
Boolean | testTelephoneNumber (String value) | |
Array | toArray (Any iterable, Integer start, Integer end) |
Constructor details
Top
public
Util
()
Util工具类
public
Util
()
Util工具类
Static Methods Detail Top
static
public
Array
arrayPush
(Array array, Any obj)
将对象放进数组
static
public
Array
arrayPushObj
(Any obj)
初始化数组
static
public
Array
arraySplice
(Array array, Any obj)
将对象移出数组
static
public
object
iif
(Boolean condition, object trueValue, object falseValue)
条件判断
static
public
Boolean
isArray
(Any value)
判断值的类型是否是Array类型
static
public
Boolean
isBoolean
(Any value)
判断值的类型是否是Boolean类型
static
public
Boolean
isFunction
(Any value)
判断是否是函数
static
public
Boolean
isObject
(Any value)
判断值的类型是否是Object类型
static
public
Boolean
isString
(Any value)
判断值的类型是否是String类型
static
public
Boolean
testBankNO
(String value)
检查格式是否为银行卡号
static
public
Boolean
testChinese
(String value)
检查格式是否为中文
static
public
Boolean
testEmail
(String value)
检查格式是否为Email
static
public
Boolean
testIDCard
(String value)
检查格式是否为身份证号码
static
public
Boolean
testInteger
(String value)
检查格式是否为整数
static
public
Boolean
testLength
(String value, Integer min, Integer max)
字符长度是否在指定范围
static
public
Boolean
testMobile
(String value)
检查格式是否为手机号码
static
public
Boolean
testMobilephoneNumber
(String value)
检查格式是否为手机号码
static
public
Boolean
testNotSpecialChar
(String value)
检查格式是否不包含特殊字符
static
public
Boolean
testNumber
(String value)
检查格式是否为数值
static
public
Boolean
testTelephoneNumber
(String value)
检查格式是否为固定电话号码
static
public
Array
toArray
(Any iterable, Integer start, Integer end)
转换成数组