Interface JQueryParam

Index

Call signatures

Properties

Methods

Call signatures

(obj: any): string

Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.

Parameters

  • obj: any

    An array or object to serialize.

Returns

string

(obj: any, traditional: boolean): string

Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.

Parameters

  • obj: any

    An array or object to serialize.

  • traditional: boolean

    A Boolean indicating whether to perform a traditional "shallow" serialization.

Returns

string

Properties

public fragment: ParamFragment

Methods

public querystring(url?: string, coerce?: boolean, merge_mode?: number): string

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 (Boolean) If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.

name

merge_mode An object representing the deserialized params string.

Parameters

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

Returns

string

public querystring(url?: string, coerce?: any, merge_mode?: number): string

Parameters

  • url?: string optional
  • coerce?: any optional
  • merge_mode?: number optional

Returns

string

public sorted(obj: any, traditional?: boolean): string

Returns a params string equivalent to that returned by the internal jQuery.param method, but sorted, which makes it suitable for use as a cache key.

name

obj An object to be serialized.

name

traditional Params deep/shallow serialization mode. See the documentation at http://api.jquery.com/jQuery.param/ for more detail.

Parameters

  • obj: any
  • traditional?: boolean optional

Returns

string