Difference between revisions of "LocalStorage"

From Lianjapedia
Jump to: navigation, search
(Events)
Line 15: Line 15:
 
|valign="top"|key as Character, value as Expression
 
|valign="top"|key as Character, value as Expression
 
|valign="top"|Create a property with the specified key and set its value
 
|valign="top"|Create a property with the specified key and set its value
 +
 +
|-
 +
|valign="top"|RemoveItem
 +
|valign="top"|key as Character
 +
|valign="top"|Removes the specified key
 +
|-
 +
|valign="top"|Contains
 +
|valign="top"|key as Character
 +
|valign="top"|Return true if the specified key exists
 
|-
 
|-
 
|}
 
|}

Revision as of 09:01, 21 March 2022

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Methods

Method Args Description
GetItem key as Character Return the value of the property with the specified key
SetItem key as Character, value as Expression Create a property with the specified key and set its value
RemoveItem key as Character Removes the specified key
Contains key as Character Return true if the specified key exists