Update README.md
这个提交包含在:
父节点
780b7583a1
当前提交
5e9e9d8a41
@ -45,7 +45,9 @@ API
|
|||||||
|
|
||||||
* `JsonStorage.create(DOMStorage, namespace, opts)`
|
* `JsonStorage.create(DOMStorage, namespace, opts)`
|
||||||
* `DOMStorage` should be globalStorage, sessionStorage, or localStorage. Defaults to window.localStorage if set to `null`.
|
* `DOMStorage` should be globalStorage, sessionStorage, or localStorage. Defaults to window.localStorage if set to `null`.
|
||||||
* `namespace` is optional string which allows multiple non-conflicting storage containers. For example you could pass two widgets different storage containers and not worry about naming conflicts: `Gizmos.create(JsonStorage.create(null, 'my-gizmos')); Gadgets.create(JsonStorage.create(null, 'my-gadgets'))`
|
* `namespace` is optional string which allows multiple non-conflicting storage containers. For example you could pass two widgets different storage containers and not worry about naming conflicts:
|
||||||
|
* `Gizmos.create(JsonStorage.create(null, 'my-gizmos'))`
|
||||||
|
* `Gadgets.create(JsonStorage.create(null, 'my-gadgets'))`
|
||||||
* `opts`
|
* `opts`
|
||||||
* `stringify` set to `false` in `node` to avoid double stringifying
|
* `stringify` set to `false` in `node` to avoid double stringifying
|
||||||
* `store.get(key)`
|
* `store.get(key)`
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户