geo*_*yws -5 javascript node.js
请考虑以下代码:
// Get Index of object based on id value
var arrayPosition = userListData.map(function (arrayItem) {
return arrayItem.username;
}).indexOf(thisUserName);
Run Code Online (Sandbox Code Playgroud)
为什么是arrayItem = userListData [0],userListData [1],userListData [2] ......?
| 归档时间: |
|
| 查看次数: |
70 次 |
| 最近记录: |