标签: javascript reactjs react-redux react-router-redux
我是JS的新手,带有react + redux框架,我在reducer代码中有一个代码如下。
try: expanded_url = .... except: expanded_url = ''
请帮助我理解这会转化为什么。
答案 0 :(得分:2)
它导出一个名为operationState的函数,其中包含参数state和action,如果在调用someState时没有传入任何内容,则默认为{}和operationState()
operationState
someState
{}
operationState()