new URLPattern(string[, baseURL][, options])
string<string> 一个 URL 字符串baseURL<string> | <undefined> 基础 URL 字符串options<Object> 选项
将 string 解析为 URL,并使用它实例化一个新的 URLPattern 对象。
【Parse the string as a URL, and use it to instantiate a new
URLPattern object.】
如果未指定 baseURL,它的默认值为 undefined。
【If baseURL is not specified, it defaults to undefined.】
一个选项可以有 ignoreCase 布尔属性,如果设置为 true,则启用不区分大小写的匹配。
【An option can have ignoreCase boolean attribute which enables
case-insensitive matching if set to true.】
构造函数可以抛出 TypeError 来表示解析失败。
【The constructor can throw a TypeError to indicate parsing failure.】