Skip to content

@miyue-mma/shared / isUrl

函数: isUrl()

ts
function isUrl(str, withProtocol?): boolean

校验 Url

参数

str

string

withProtocol?

boolean

是否包含协议

返回

boolean

Released under the MIT License.