n
n
nexo
Search
⌃
K
n
n
nexo
Search
⌃
K
Introduction
Components
DOM Tools
DOM Event handler
Event system
Web Tools
Data Models
Project demo
Powered By
GitBook
Web Tools
Add cookie and set 2 day expiration
n
.
cookies
.
set
(
'key'
,
'value'
,
2
);
// Expiration in 2 days
Get cookie value
n
.
cookies
.
get
(
'key'
)
// Returns 'value'
n.params object contains a URL parsed data
Example:
http://localhost/index.html?key=value&key2=value2
console
.
log
(
n
.
params
)
-
>
{
"key"
:
"value"
,
"key2"
:
"value2"
}
Previous
Event system
Next
Data Models
Last modified
3yr ago