Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs Can';t在React中传递函数中的数据_Reactjs - Fatal编程技术网

Reactjs Can';t在React中传递函数中的数据

Reactjs Can';t在React中传递函数中的数据,reactjs,Reactjs,我在react中将数据传递给我的函数,但当我显示日志时,它是未定义的。 家长: 儿童: props.getDomainList( 1, 25, (code, res) => handleResult(code, res)); 您正在将属性作为破坏性赋值()传递。子呼叫必须是 props.getDomainList({page: 1, page_size: 25}, (code, res) => handleResult(code, res)); 您正在将属性作为破坏性赋值()传

我在react中将数据传递给我的函数,但当我显示日志时,它是未定义的。 家长:

儿童:

 props.getDomainList( 1, 25, (code, res) => handleResult(code, res));

您正在将属性作为破坏性赋值()传递。子呼叫必须是

props.getDomainList({page: 1, page_size: 25}, (code, res) => handleResult(code, res));

您正在将属性作为破坏性赋值()传递。子呼叫必须是

props.getDomainList({page: 1, page_size: 25}, (code, res) => handleResult(code, res));