location.search will equal '?answer=42' . You can parse the query string using the URLSearchParams class: const querystring = '?answer ...
確定! 回上一頁