“`” 参考回答:

提供 <a href=""https://www.nowcoder.com/tutorial/96/6b04165463a84068a931f70c14cdf0c4#getState"">getState()</a> 方法获取 state;

提供 <a href=""https://www.nowcoder.com/tutorial/96/6b04165463a84068a931f70c14cdf0c4#dispatch"">dispatch(action)</a> 方法更新 state;

通过 <a href=""https://www.nowcoder.com/tutorial/96/6b04165463a84068a931f70c14cdf0c4#subscribe"">subscribe(listener)</a> 注册监听器;

等等

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.