Sets the value associated with a specified key.
This replaces the key's previous value, if any.
setItem( key, value )
Name | Type | Description |
key | String | String key corresponding to the value. |
value | String | String value to store. |
// Create the SUP Storage var store = new hwc.SUPStorage ("one"); store.setItem ("foo", "bar"); // add an item.