Difference between revisions of "SessionStorage"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 8: | Line 8: | ||
!Value | !Value | ||
!width="50%"|Description | !width="50%"|Description | ||
+ | |- | ||
+ | |valign="top"|dataChanged | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Character | ||
+ | | | ||
+ | |- | ||
+ | |valign="top"|dataChangedInterval | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Numeric | ||
+ | |The interval in msecs that checks for session data changes will be made at runtime. | ||
|- | |- | ||
|valign="top"|length | |valign="top"|length |
Revision as of 04:30, 6 May 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 |
---|---|---|---|
dataChanged | R | Character | |
dataChangedInterval | R | Numeric | The interval in msecs that checks for session data changes will be made at runtime. |
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 |
---|