grey-shared-object
v0.0.6
Published
#### 介绍 基于 Local Storage 的共享对象
Downloads
5
Readme
grey-group-function
介绍
基于 Local Storage 的共享对象
git
https://gitee.com/grey-ts/grey-shared-object
<div className="App">
<a onClick={e => {
sharedObject.on('xxx', onHander);
}} >开始监听</a>
|
<a onClick={e => {
sharedObject.off('xxx', onHander);
}} >取消监听</a>
|
<a onClick={e => {
sharedObject.set('xxx', Math.random());
}} >设置数据</a>
</div>