common

common()

通用工具

Methods

staticcommon.checkResults(results)Boolean

检测结果是否为正常
Name Type Description
results Object 服务端返回数据
Returns:

staticcommon.dateFormat(date, format)void|string

日期格式化
Name Type Description
date Date 被格式化日期
format String 格式
Returns:

staticcommon.xssCheck(str, reg)String

XSS 检测
Name Type Description
str String 被检测字符串
reg String optional 正则表达式
Returns: