url.query

url.query

url.query

Function

Read the query parameter object of the current URL.

Syntax

Parameters

None.

Return value

TypeDescription
ObjectReturns the query parameter dynamic key value object. See below for field rules.

Return object fields

FieldTypeMust existDescription
Any query parameter nameStringNoURL decoded query parameter value. When the parameter does not exist, the field does not exist, and the read result is empty.

Code Example

Notes

  • The value that appears after a repeated parameter name overwrites the previous value.
  • Returns an empty Object if there is no query string.