Interface JQueryDeparam

Index

Call signatures

Methods

Call signatures

(params: string, coerce?: boolean): any

Deserialize a params string into an object, optionally coercing numbers, booleans, null and undefined values; this method is the counterpart to the internal jQuery.param method.

name

params A params string to be parsed.

name

coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.

Parameters

  • params: string
  • coerce?: boolean optional

Returns

any

Methods

public fragment(url?: string, coerce?: boolean): any

Parse the fragment (hash) from a URL or the current window.location.href, deserializing it into an object, optionally coercing numbers, booleans, null and undefined values.

name

url An optional params string or URL containing fragment (hash) params to be parsed. If url is omitted, the current window.location.href is used.

name

coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.

Parameters

  • url?: string optional
  • coerce?: boolean optional

Returns

any

public querystring(url?: string, coerce?: boolean): any

Parse the query string from a URL or the current window.location.href, deserializing it into an object, optionally coercing numbers, booleans, null and undefined values.

name

url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.

name

coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.

Parameters

  • url?: string optional
  • coerce?: boolean optional

Returns

any