const list = [{ "id": 3, "nextId": 0 }, { "id": 1, "nextId": 2 }, { "id": 2, "nextId": 3 }]; //输出 1 const findFirstNode = (nodeList) => { const newArr = nodeList.sort((a, b) => a.id - b.id) return newArr[0]; } console.log(findFirstNode(list));