各瀏覽器對於URL API 的支援度比URLSearchParams 高,但是可以從CanIUse 看 ... let url = new URL(url_string); url.searchParams.has("b"); // true
確定! 回上一頁