Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.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
如何使用node.js创建索引处的对象_Node.js - Fatal编程技术网

如何使用node.js创建索引处的对象

如何使用node.js创建索引处的对象,node.js,Node.js,我是一名iOS开发人员,我就是找不到有关如何获取数组的第一个对象或某个数组索引处的对象的信息 假设您希望在node.js中的数组索引处找到对象,您可以像这样使用它 var objYouAreLooking = sourceArray[index]; 这类似于 objYouAreLooking = [sourceArray objectAtIndex:index]; 在目标c中 NodeJS中的JS用于JavaScript,您将了解有关数组的所有信息:-)

我是一名iOS开发人员,我就是找不到有关如何获取数组的第一个对象或某个数组索引处的对象的信息

假设您希望在node.js中的数组索引处找到对象,您可以像这样使用它

var objYouAreLooking = sourceArray[index];
这类似于

 objYouAreLooking = [sourceArray objectAtIndex:index];

在目标c中

NodeJS中的JS用于JavaScript,您将了解有关数组的所有信息:-)