毕业不是终点,而是起点 | 课型:理论课 | 建议课时:2节
勾选已掌握技能,生成个性化的12个月学习建议。
新窗口运行 下载源码<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>学习路线规划器</title>
<style>
body { font-family: "Microsoft YaHei", sans-serif; background: #f2f6f8; margin: 0;
display: flex; justify-content: center; padding: 30px 16px; }
.panel { background: #fff; border-radius: 14px; padding: 26px; width: 520px;
box-shadow: 0 6px 24px rgba(18,58,82,.1); }
h1 { font-size: 20px; color: #123a52; }
.skill { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e0e8ec; }
.skill input { width: 18px; height: 18px; accent-color: #0f8c7f; }
button { margin-top: 18px; width: 100%; padding: 12px; border: none; border-radius: 8px;
background: #0f8c7f; color: #fff; font-size: 16px; cursor: pointer; }
#plan { margin-top: 18px; line-height: 1.9; font-size: 15px; }
#bar { height: 10px; background: #e0e8ec; border-radius: 5px; margin-top: 14px; overflow: hidden; }
#fill { height: 100%; width: 0; background: linear-gradient(90deg, #0f8c7f, #38d6c4); transition: width .6s; }
</style>
</head>
<body>
<div class="panel">
<h1>📍 我的前端技能盘点</h1>
<div id="skills"></div>
<div id="bar"><div id="fill"></div></div>
<button onclick="makePlan()">生成我的学习建议</button>
<div id="plan"></div>
</div>
<script>
const SKILLS = ['HTML语义化', 'CSS布局(Flex/Grid)', '响应式设计', 'CSS动画与3D',
'JavaScript核心', 'DOM与Canvas', '表单与Web API', '性能优化',
'Git与模块化', 'Vue 3基础'];
const box = document.getElementById('skills');
SKILLS.forEach((s, i) => {
const d = document.createElement('label'); d.className = 'skill';
d.innerHTML = '<input type="checkbox" data-i="' + i + '"> ' + s;
box.appendChild(d);
});
box.addEventListener('change', () => {
const n = box.querySelectorAll('input:checked').length;
document.getElementById('fill').style.width = (n / SKILLS.length * 100) + '%';
});
function makePlan() {
const weak = SKILLS.filter((s, i) => !box.querySelector('input[data-i="' + i + '"]:checked'));
const plan = document.getElementById('plan');
if (!weak.length) { plan.innerHTML = '🎉 基础已全部通关!建议直接进入:<br>① Vue 3深入与组件库 ② TypeScript ③ 完整项目实战 ④ 备战省赛'; return; }
plan.innerHTML = '📅 你的补强路线(优先攻克薄弱项):<br>' +
weak.map((s, i) => '<b>第' + (i + 1) + '月</b>:' + s).join('<br>') +
'<br><br>💡 每月一个小项目,全部收入作品集!';
}
</script>
</body>
</html>任务目标:制定个人12个月学习路线与职业规划
| 任务内容与评分 |
|---|
| 任务1:完成技能盘点并生成建议(15分) |
| 任务2:分析三份真实JD的技能要求(20分) |
| 任务3:制定SMART的12个月计划(30分) |
| 任务4:写给一年后自己的信(20分) |
| 任务5:找到你的学习共同体(社群/伙伴)(15分) |