【发布时间】:2017-11-19 17:26:42
【问题描述】:
我正在尝试返回 2 个函数的结果,但没有成功。我正在执行以下操作:
var x = getFunctionResults1(items);
var y = getFunctionResults2(items);
return {x,y}
但是得到这个输出:
[ { x: [ [Object], [Object], [Object], [Object], [Object] ],
y: [ [Object] ] },
{ x: [ [Object], [Object] ], y: [ [Object] ] } ]
【问题讨论】:
标签: javascript function return