在数组数组中循环时,我试图获取数组的名称,
这里是数组
roles: [
Operational = [
"Drives cloud standards for adopting cloud services to ensure consistency.",
"Provide regular, clear, and consistent communication (written and oral) on the status of projects, issues, and deliverables to representatives from the customer/vendor.",
"Develop and maintain understanding of key processes, schedules, cycles, profiles, etc. for the technical systems in use by a customer.",
"Work with IT and Business management to evaluate complex user requests, large projects and strategies.",
"Perform analysis of large-scale, complex, cross-system, cross-platform changes or issues.",
],
Acquisition = [
"Work with cloud vendors to evaluate and select services that can support agile business requirements",
"Prepare ROI analysis and assist with creating budget proposals to initiate the acquisition of cloud services",
"Mitigate significant risks associated with large cloud projects, which have a hig",
"complexity and/or involve significant challenges to the business and systems",
"Partner with internal teams and cloud vendors on software and hardware selection and produce and present cost and value benefit analyses",
]
],
我想循环访问角色,并且在每个索引上我想获取该数组中的名称和内容。像,操作:1)2)3)收购:1)2)等等..像这样
当我不知道如何获取 Operational 、 Acquisition 之类的名称时,我可以显示每个数组索引中的值。
这是我尝试过的。
jobOffer.roles.forEach((role, index) => {
role.forEach(rol => {
roles += `<li style="padding: 8px 0px 8px 0px; color: #000;">${rol}</li>`
})
});
任何建议将不胜感激。
千巷猫影
呼啦一阵风
相关分类