Difference between revisions of "LocalStorage"

From Lianjapedia
Jump to: navigation, search
(Properties)
 
(2 intermediate revisions by the same user not shown)
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
 +
|-
 +
|valign="top"|Clear
 +
|valign="top"|
 +
|valign="top"|Removes all keys
  
====Events====
 
 
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!Args
 
!width="50%"|Description
 
 
|-
 
|-
 
|}
 
|}
 +
 +
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Framework Classes]]
 
[[Category:Framework Classes]]

Latest revision as of 09:05, 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
Clear Removes all keys