类名 ServerBaseUrlRegExp

# new ServerBaseUrlRegExp()

服务基地址匹配正则表达式

方法

# static initRegExps()

生成需要的正则表达式规则,规范详见https://shimo.im/sheets/zdkyd7WLLvTGogq6/skgBW

# static matchString(url)

校验并返回正确的地址

参数:

名称 类型 描述
url String

待检测的url

满足服务基地址规范的第一个字符串,规范详见: https://shimo.im/sheets/zdkyd7WLLvTGogq6/skgBW

String
构造函数
成员变量
方法
事件