Difference between revisions of "SessionStorage"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 23: | Line 23: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|clear |
+ | |valign="top"|None | ||
+ | |valign="top"|Clear sessionStorage of all key/value pairs | ||
+ | |- | ||
+ | |valign="top"|getItem | ||
+ | |valign="top"|key as Character | ||
+ | |valign="top"|Return the value of the item with the specified key | ||
+ | |- | ||
+ | |valign="top"|removeItem | ||
|valign="top"|key as Character | |valign="top"|key as Character | ||
− | |valign="top"| | + | |valign="top"|Remove the item with the specified key |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|setItem |
|valign="top"|key as Character, value as Expression | |valign="top"|key as Character, value as Expression | ||
− | |valign="top"|Create | + | |valign="top"|Create an item with the specified key and set its value |
|- | |- | ||
|} | |} |
Revision as of 11:21, 6 April 2016
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
Property | Access (R/RW) | Value | Description |
---|---|---|---|
length | R | Numeric | Number of key/value pairs in sessionStorage |
Methods
Method | Args | Description |
---|---|---|
clear | None | Clear sessionStorage of all key/value pairs |
getItem | key as Character | Return the value of the item with the specified key |
removeItem | key as Character | Remove the item with the specified key |
setItem | key as Character, value as Expression | Create an item with the specified key and set its value |
Events
Event | Args | Description |
---|