// 定义求职者数据const jobSeekers = [
{ id: 1, name: '张三', skills: ['编程', '设计'], experience: '5 年' },
{ id: 2, name: '李四', skills: ['销售', '客服'], experience: '3 年' },
{ id: 3, name: '王五', skills: ['财务', '会计'], experience: '8 年' }];// 渲染求职者信息的函数function renderJobSeekers() {
const seekerList = document.getElementById('seekerList');
jobSeekers.forEach(seeker => {
const li = document.createElement('li');
li.innerHTML = `${seeker.name} - 技能:${seeker.skills.join(', ')} - 经验:${seeker.experience}`;
seekerList.appendChild(li);
});}// 调用渲染函数renderJobSeekers();
暂时没有评论,来抢沙发吧~