假设我使用dispatch()分派一个动作,我知道reducer()被调用,其中有an action object and current state as parameters。在减速器函数和调度函数之前调用哪些函数?还原器函数返回新的状态后,在此之后调用哪些函数?这个新国家将走向何方?在还原器函数返回新状态后,usestate()和useselector()是否也返回一些内容?
我正在学习VueJS。我正在弄清楚他们的货币验证。$refs.input.value = formattedValue // Emit the number value through the input event$emit('input', Number(formattedValue)) }updateValue函数底部的$emit调用触发了一个输入事件。但是为什么要在输入事件中触发输入事件呢