Adds a route fragment for the given string token to the specified regex matcher to this Router instance. See URL Parameters for more documentation.
Syntax
var instance = new Router();
var value; // Type: String
// Parameters
var token; // Type: String
var matcher; // Type: String
value = instance.param(token, matcher);
function param(
: String,
: String
) : String;
Parameters
- token
- Named parameter token to set to the specified matcher
- matcher
- Matcher for the specified token
Browser Compatibility
See Also