qc.Storage.set

Prototype

  • void set(string key, object value)

Parameters

Parameter Type Description
key string The unique key of data.
value object The value of data.

Description

Save an item.

Example

    game.storage.set('name', 'weism');

    game.storage.save();