Constructor
new LocalStorage()
Member
(static) _baseClass :Class
(static) items :Object
Data list.
(static) support :Boolean
Express support
LocalStorage
.
Methods
__init__()
clear()
Clear local storage information.
getItem(key) → {String}
Access to the specified value name.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key. |
Returns:
- Type:
-
String
String value.
getJSON(key) → {Object}
Access to the specified key corresponding to the
Object
Type value.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key. |
Returns:
- Type:
-
Object
Object
type value
removeItem(key)
Delete the specified key information.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key. |
setItem(key, value)
Store the specified key names and key, string type.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key. |
value |
String
|
Key value. |
setJSON(key, value)
The key and the corresponding designated storage
Object
Type value.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
Key. |
value |
Object
|
Key value. yes Object This type can be transformed into JSON strings.
|