Edit this page

up.Params up.Params.prototype.add(name, value)
Instance method

Adds a new entry with the given name and value.

An up.Params instance can hold multiple entries with the same name. To overwrite all existing entries with the given name, use up.Params#set() instead.

Example

var params = new up.Params()
params.add('foo', 'fooValue')

var foo = params.get('foo')
// foo is now 'fooValue'

Parameters

name
required

The name of the new entry.

string
value
required

The value of the new entry.

any