当前位置:首页 > 文章列表 > 文章 > 前端 > HTML设置页面标题方法|标题标签使用教程

HTML设置页面标题方法|标题标签使用教程

2026-05-28 10:42:43 0浏览 收藏
HTML页面标题必须严格使用``标签置于``内,这是浏览器渲染前识别页面名称、影响SEO和书签功能的关键环节;它仅支持纯文本,禁止HTML标签、模板语法或非法字符,写在``中会被忽略或强制迁移,导致不可靠行为;动态更新时需兼顾服务端初始标题与前端路由变化后的`document.title`同步,避免爬虫遗漏或浏览器兼容问题,同时控制标题长度在50字符以内以保障搜索展示效果——掌握这一看似简单却极易出错的核心规范,是确保网页可发现性与用户体验的基础。

HTML中如何添加页面标题_HTML添加页面标题元素说明【标题设置】

页面标题必须用 </code> 标签写在 <code><head></code> 里,其他地方加都无效。</strong></p> <h3>为什么 <code><title></code> 必须放在 <code><head></code> 中</h3> <p>浏览器解析 HTML 是顺序执行的,<code><title></code> 的作用是告诉浏览器“这个页面叫什么”,它需要在页面渲染前就确定。如果写在 <code><body></code> 里,多数浏览器会忽略或强行挪到 <code><head></code>,但行为不可靠,SEO 和书签也会出问题。</p> <ul><li>写在 <code><body></code> 开头?—— 无效,Chrome/Firefox 会静默修复,但爬虫可能不认</li> <li>用 JavaScript 动态改 <code>document.title</code>?—— 可以,但初始标题仍需 <code><title></code> 提供</li> <li>多个 <code><title></code>?—— 后面的会覆盖前面的,但属于 HTML 错误,W3C 验证不通过</li> </ul><h3><code><title></code> 里不能写什么</h3> <p>它只接受纯文本,所有 HTML 标签、实体以外的特殊字符、JS 表达式都会被当作文本原样显示,甚至破坏页面结构。</p> <ul><li>别写 <code><strong>首页</strong></code> —— 浏览器标签页会真的显示“<code><strong>首页</strong></code>”</li> <li>别写 <code><%= title %></code> 或 <code>{{ title }}</code> —— 服务端没渲染时,用户看到的就是字面量</li> <li>中文、emoji、破折号(—)、版权符(©)可以,但避免全角空格和不可见 Unicode 字符</li> </ul><h3>动态设置标题的常见错误</h3> <p>单页应用(SPA)常依赖 JS 更新标题,但容易漏掉关键环节。</p> <ul><li>只改 <code>document.title</code>,没同步更新 <code><title></code> 的 innerHTML?—— SSR 或爬虫看不到新标题</li> <li>路由切换后立即改标题,但页面还没加载完?—— 某些浏览器(如旧版 Safari)可能丢弃这次修改</li> <li>用 <code>setTimeout</code> 延迟设标题?—— 不稳定,应监听 <code>history.pushState</code> 或使用框架的生命周期钩子</li> </ul><p>最稳妥的做法:服务端输出正确的初始 <code><title></code>,前端路由变化时同步调用 <code>document.title = '新标题'</code>,并确保首屏 HTML 已包含语义化内容。标题长度控制在 50 字符内,过长会被截断,且影响搜索结果展示。</p><p>到这里,我们也就讲完了《HTML设置页面标题方法|标题标签使用教程》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!</p> </div> <div class="labsList"> </div> <div class="cateBox"> <div class="cateItem"> <a href="/article/614548.html" title="CSS快速调换两列位置,grid-template-areas妙用" class="img_box"> <img src="/uploads/20260528/17799360936a17ab5d84dd9.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="CSS快速调换两列位置,grid-template-areas妙用">CSS快速调换两列位置,grid-template-areas妙用 </a> <dl> <dt class="lineOverflow"><a href="/article/614548.html" title="CSS快速调换两列位置,grid-template-areas妙用" class="aBlack">上一篇<i></i></a></dt> <dd class="lineTwoOverflow">CSS快速调换两列位置,grid-template-areas妙用</dd> </dl> </div> <div class="cateItem"> <a href="/article/614550.html" title="Python多列表同索引最大值位置查找技巧" class="img_box"> <img src="/uploads/20260528/17799361656a17aba541658.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="Python多列表同索引最大值位置查找技巧"> </a> <dl> <dt class="lineOverflow"><a href="/article/614550.html" class="aBlack" title="Python多列表同索引最大值位置查找技巧">下一篇<i></i></a></dt> <dd class="lineTwoOverflow">Python多列表同索引最大值位置查找技巧</dd> </dl> </div> </div> </div> </div> <div class="leftContBox pt0"> <div class="pdl20"> <div class="contTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit">最新文章</div> </div> </div> <ul class="newArticleList"> <li> <div class="contBox"> <a href="/article/623754.html" class="img_box" title="CSS Anchor Positioning 做悬浮提示:锚点边界与回退写法"> <img src="/uploads/20260831/1788163702-css-anchor-binding.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS Anchor Positioning 做悬浮提示:锚点边界与回退写法"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  4小时前  |   <a href="/articletag/161_new_0_1.html" class="aLightGray" title="布局">布局</a> · <a href="/articletag/243_new_0_1.html" class="aLightGray" title="前端">前端</a> · <a href="/articletag/4729_new_0_1.html" class="aLightGray" title="css">css</a> · <a href="javascript:;" class="aLightGray" title="anchor-name">anchor-name</a> <a href="javascript:;" class="aLightGray" title="CSS anchor positioning">CSS anchor positioning</a> <a href="javascript:;" class="aLightGray" title="position-try">position-try</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623754.html" class="aBlack" target="_blank" title="CSS Anchor Positioning 做悬浮提示:锚点边界与回退写法">CSS Anchor Positioning 做悬浮提示:锚点边界与回退写法</a> </dt> <dd class="cont2"> <span><i class="view"></i>389浏览</span> <span class="collectBtn user_collection" data-id="623754" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623719.html" class="img_box" title="JavaScript ResizeObserver 如何避免响应式死循环:contentRect、阈值与 disconnect 边界"> <img src="/uploads/20260830/1788094188-resizeobserver-entry-boundary.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="JavaScript ResizeObserver 如何避免响应式死循环:contentRect、阈值与 disconnect 边界"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  23小时前  |   <a href="/articletag/1307_new_0_1.html" class="aLightGray" title="浏览器">浏览器</a> · <a href="/articletag/4701_new_0_1.html" class="aLightGray" title="javascript">javascript</a> · <a href="/articletag/39768_new_0_1.html" class="aLightGray" title="前端性能">前端性能</a> · <a href="/articletag/40780_new_0_1.html" class="aLightGray" title="Web API">Web API</a> · <a href="/articletag/41469_new_0_1.html" class="aLightGray" title="响应式设计">响应式设计</a> · <a href="javascript:;" class="aLightGray" title="JavaScript">JavaScript</a> <a href="javascript:;" class="aLightGray" title="响应式布局">响应式布局</a> <a href="javascript:;" class="aLightGray" title="ResizeObserver">ResizeObserver</a> <a href="javascript:;" class="aLightGray" title="contentRect">contentRect</a> <a href="javascript:;" class="aLightGray" title="disconnect">disconnect</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623719.html" class="aBlack" target="_blank" title="JavaScript ResizeObserver 如何避免响应式死循环:contentRect、阈值与 disconnect 边界">JavaScript ResizeObserver 如何避免响应式死循环:contentRect、阈值与 disconnect 边界</a> </dt> <dd class="cont2"> <span><i class="view"></i>257浏览</span> <span class="collectBtn user_collection" data-id="623719" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623700.html" class="img_box" title="JavaScript View Transitions 如何避免并发导航动画冲突:skipTransition、finished 与回滚状态"> <img src="/uploads/20260830/1788072847-view-transition-initial.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="JavaScript View Transitions 如何避免并发导航动画冲突:skipTransition、finished 与回滚状态"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623700.html" class="aBlack" target="_blank" title="JavaScript View Transitions 如何避免并发导航动画冲突:skipTransition、finished 与回滚状态">JavaScript View Transitions 如何避免并发导航动画冲突:skipTransition、finished 与回滚状态</a> </dt> <dd class="cont2"> <span><i class="view"></i>327浏览</span> <span class="collectBtn user_collection" data-id="623700" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623699.html" class="img_box" title="CSS container-type 实战:让卡片组件按自身宽度切换布局"> <img src="/uploads/20260830/1788072717-container-query-narrow.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS container-type 实战:让卡片组件按自身宽度切换布局"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623699.html" class="aBlack" target="_blank" title="CSS container-type 实战:让卡片组件按自身宽度切换布局">CSS container-type 实战:让卡片组件按自身宽度切换布局</a> </dt> <dd class="cont2"> <span><i class="view"></i>266浏览</span> <span class="collectBtn user_collection" data-id="623699" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623688.html" class="img_box" title="HTML dialog closedby 如何区分 Esc、点击外部与强制关闭:关闭原因和兼容降级"> <img src="/uploads/20260830/1788068451-dialog-logs.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="HTML dialog closedby 如何区分 Esc、点击外部与强制关闭:关闭原因和兼容降级"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623688.html" class="aBlack" target="_blank" title="HTML dialog closedby 如何区分 Esc、点击外部与强制关闭:关闭原因和兼容降级">HTML dialog closedby 如何区分 Esc、点击外部与强制关闭:关闭原因和兼容降级</a> </dt> <dd class="cont2"> <span><i class="view"></i>479浏览</span> <span class="collectBtn user_collection" data-id="623688" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623686.html" class="img_box" title="CSS backdrop-filter 怎么控制毛玻璃层:叠加顺序、透明背景与降级检查"> <img src="/uploads/20260830/1788068333-backdrop-filter-root-focus.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS backdrop-filter 怎么控制毛玻璃层:叠加顺序、透明背景与降级检查"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623686.html" class="aBlack" target="_blank" title="CSS backdrop-filter 怎么控制毛玻璃层:叠加顺序、透明背景与降级检查">CSS backdrop-filter 怎么控制毛玻璃层:叠加顺序、透明背景与降级检查</a> </dt> <dd class="cont2"> <span><i class="view"></i>496浏览</span> <span class="collectBtn user_collection" data-id="623686" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623656.html" class="img_box" title="CSS anchor positioning 实战:anchor-name、position-anchor 与 fallback 位置如何联动"> <img src="/uploads/20260830/1788064148-anchor-fallback.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS anchor positioning 实战:anchor-name、position-anchor 与 fallback 位置如何联动"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   <a href="/articletag/161_new_0_1.html" class="aLightGray" title="布局">布局</a> · <a href="/articletag/4729_new_0_1.html" class="aLightGray" title="css">css</a> · <a href="/articletag/5401_new_0_1.html" class="aLightGray" title="前端开发">前端开发</a> · <a href="/articletag/40165_new_0_1.html" class="aLightGray" title="浏览器特性">浏览器特性</a> · <a href="javascript:;" class="aLightGray" title="anchor-name">anchor-name</a> <a href="javascript:;" class="aLightGray" title="position-try-fallbacks">position-try-fallbacks</a> <a href="javascript:;" class="aLightGray" title="CSS anchor positioning">CSS anchor positioning</a> <a href="javascript:;" class="aLightGray" title="position-anchor">position-anchor</a> <a href="javascript:;" class="aLightGray" title="前端浮层">前端浮层</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623656.html" class="aBlack" target="_blank" title="CSS anchor positioning 实战:anchor-name、position-anchor 与 fallback 位置如何联动">CSS anchor positioning 实战:anchor-name、position-anchor 与 fallback 位置如何联动</a> </dt> <dd class="cont2"> <span><i class="view"></i>454浏览</span> <span class="collectBtn user_collection" data-id="623656" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623654.html" class="img_box" title="前端拖拽排序怎么保留键盘操作:Drag and Drop API、焦点恢复与提交校验"> <img src="/uploads/20260830/1788063892-keyboard-selected.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="前端拖拽排序怎么保留键盘操作:Drag and Drop API、焦点恢复与提交校验"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   <a href="/articletag/243_new_0_1.html" class="aLightGray" title="前端">前端</a> · <a href="/articletag/4701_new_0_1.html" class="aLightGray" title="javascript">javascript</a> · <a href="/articletag/40050_new_0_1.html" class="aLightGray" title="可访问性">可访问性</a> · <a href="/articletag/40780_new_0_1.html" class="aLightGray" title="Web API">Web API</a> · <a href="javascript:;" class="aLightGray" title="键盘操作">键盘操作</a> <a href="javascript:;" class="aLightGray" title="前端拖拽排序">前端拖拽排序</a> <a href="javascript:;" class="aLightGray" title="焦点恢复">焦点恢复</a> <a href="javascript:;" class="aLightGray" title="Drag and Drop API">Drag and Drop API</a> <a href="javascript:;" class="aLightGray" title="提交校验">提交校验</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623654.html" class="aBlack" target="_blank" title="前端拖拽排序怎么保留键盘操作:Drag and Drop API、焦点恢复与提交校验">前端拖拽排序怎么保留键盘操作:Drag and Drop API、焦点恢复与提交校验</a> </dt> <dd class="cont2"> <span><i class="view"></i>383浏览</span> <span class="collectBtn user_collection" data-id="623654" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623626.html" class="img_box" title="ResizeObserver 监听卡片宽度时如何避免循环触发:borderBoxSize 与帧内合并"> <img src="/uploads/20260830/1788055330-resizeobserver-frame-render.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="ResizeObserver 监听卡片宽度时如何避免循环触发:borderBoxSize 与帧内合并"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623626.html" class="aBlack" target="_blank" title="ResizeObserver 监听卡片宽度时如何避免循环触发:borderBoxSize 与帧内合并">ResizeObserver 监听卡片宽度时如何避免循环触发:borderBoxSize 与帧内合并</a> </dt> <dd class="cont2"> <span><i class="view"></i>487浏览</span> <span class="collectBtn user_collection" data-id="623626" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623601.html" class="img_box" title="JavaScript Promise.withResolvers 如何拆分异步控制器:旧写法迁移与异常收口"> <img src="/uploads/20260830/1788050997-promise-resolvers-control.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="JavaScript Promise.withResolvers 如何拆分异步控制器:旧写法迁移与异常收口"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/623601.html" class="aBlack" target="_blank" title="JavaScript Promise.withResolvers 如何拆分异步控制器:旧写法迁移与异常收口">JavaScript Promise.withResolvers 如何拆分异步控制器:旧写法迁移与异常收口</a> </dt> <dd class="cont2"> <span><i class="view"></i>412浏览</span> <span class="collectBtn user_collection" data-id="623601" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623600.html" class="img_box" title="HTML inert 如何管理模态层焦点:inert、aria-hidden 与恢复焦点"> <img src="/uploads/20260830/1788050953-focus-restore-flow.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="HTML inert 如何管理模态层焦点:inert、aria-hidden 与恢复焦点"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   <a href="/articletag/243_new_0_1.html" class="aLightGray" title="前端">前端</a> · <a href="/articletag/4701_new_0_1.html" class="aLightGray" title="javascript">javascript</a> · <a href="/articletag/40991_new_0_1.html" class="aLightGray" title="无障碍">无障碍</a> · <a href="javascript:;" class="aLightGray" title="html">html</a> <a href="javascript:;" class="aLightGray" title="无障碍">无障碍</a> <a href="javascript:;" class="aLightGray" title="dialog">dialog</a> <a href="javascript:;" class="aLightGray" title="inert">inert</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623600.html" class="aBlack" target="_blank" title="HTML inert 如何管理模态层焦点:inert、aria-hidden 与恢复焦点">HTML inert 如何管理模态层焦点:inert、aria-hidden 与恢复焦点</a> </dt> <dd class="cont2"> <span><i class="view"></i>430浏览</span> <span class="collectBtn user_collection" data-id="623600" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/623573.html" class="img_box" title="Popover API 如何实现点击外部关闭:popover、beforetoggle 与无障碍焦点验收"> <img src="/uploads/20260830/1788046542-popover-light-dismiss-flow.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Popover API 如何实现点击外部关闭:popover、beforetoggle 与无障碍焦点验收"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  1天前  |   <a href="/articletag/243_new_0_1.html" class="aLightGray" title="前端">前端</a> · <a href="/articletag/4701_new_0_1.html" class="aLightGray" title="javascript">javascript</a> · <a href="/articletag/40050_new_0_1.html" class="aLightGray" title="可访问性">可访问性</a> · <a href="/articletag/40780_new_0_1.html" class="aLightGray" title="Web API">Web API</a> · <a href="javascript:;" class="aLightGray" title="Toggle">Toggle</a> <a href="javascript:;" class="aLightGray" title="popover">popover</a> <a href="javascript:;" class="aLightGray" title="Popover API">Popover API</a> <a href="javascript:;" class="aLightGray" title="beforetoggle">beforetoggle</a> <a href="javascript:;" class="aLightGray" title="无障碍焦点">无障碍焦点</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/623573.html" class="aBlack" target="_blank" title="Popover API 如何实现点击外部关闭:popover、beforetoggle 与无障碍焦点验收">Popover API 如何实现点击外部关闭:popover、beforetoggle 与无障碍焦点验收</a> </dt> <dd class="cont2"> <span><i class="view"></i>256浏览</span> <span class="collectBtn user_collection" data-id="623573" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> </ul> </div> </div> <div class="mainRight"> <!-- 右侧广告位banner --> <div class="rightContBox" style="margin-top: 0px;"> <div class="rightTit"> <a href="/courselist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">课程推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/course/9.html" class="img_box" target="_blank" title="前端进阶之JavaScript设计模式"> <img src="/uploads/20221222/52fd0f23a454c71029c2c72d206ed815.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="前端进阶之JavaScript设计模式"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/9.html" target="_blank" class="aBlack" title="前端进阶之JavaScript设计模式">前端进阶之JavaScript设计模式</a></dt> <dd class="cont1 lineTwoOverflow"> 设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。 </dd> <dd class="cont2">543次学习</dd> </dl> </li> <li> <a href="/course/2.html" class="img_box" target="_blank" title="GO语言核心编程课程"> <img src="/uploads/20221221/634ad7404159bfefc6a54a564d437b5f.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="GO语言核心编程课程"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/2.html" target="_blank" class="aBlack" title="GO语言核心编程课程">GO语言核心编程课程</a></dt> <dd class="cont1 lineTwoOverflow"> 本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。 </dd> <dd class="cont2">516次学习</dd> </dl> </li> <li> <a href="/course/74.html" class="img_box" target="_blank" title="简单聊聊mysql8与网络通信"> <img src="/uploads/20240103/bad35fe14edbd214bee16f88343ac57c.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="简单聊聊mysql8与网络通信"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/74.html" target="_blank" class="aBlack" title="简单聊聊mysql8与网络通信">简单聊聊mysql8与网络通信</a></dt> <dd class="cont1 lineTwoOverflow"> 如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让 </dd> <dd class="cont2">500次学习</dd> </dl> </li> <li> <a href="/course/57.html" class="img_box" target="_blank" title="JavaScript正则表达式基础与实战"> <img src="/uploads/20221226/bbe4083bb3cb0dd135fb02c31c3785fb.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="JavaScript正则表达式基础与实战"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/57.html" target="_blank" class="aBlack" title="JavaScript正则表达式基础与实战">JavaScript正则表达式基础与实战</a></dt> <dd class="cont1 lineTwoOverflow"> 在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。 </dd> <dd class="cont2">487次学习</dd> </dl> </li> <li> <a href="/course/28.html" class="img_box" target="_blank" title="从零制作响应式网站—Grid布局"> <img src="/uploads/20221223/ac110f88206daeab6c0cf38ebf5fe9ed.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="从零制作响应式网站—Grid布局"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/28.html" target="_blank" class="aBlack" title="从零制作响应式网站—Grid布局">从零制作响应式网站—Grid布局</a></dt> <dd class="cont1 lineTwoOverflow"> 本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。 </dd> <dd class="cont2">485次学习</dd> </dl> </li> </ul> </div> <div class="rightContBox"> <div class="rightTit"> <a href="/ai.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">AI推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/ai/13892.html" target="_blank" title="SuperCLUE中文大模型评测基准:功能、能力维度与应用指南" class="img_box"> <img src="/uploads/20260831/17881740316a955ecf5901d.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="SuperCLUE中文大模型评测基准:功能、能力维度与应用指南" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13892.html" class="aBlack" target="_blank" title="SuperCLUE">SuperCLUE</a></dt> <dd class="cont1 lineTwoOverflow"> SuperCLUE是权威的中文大语言模型综合评测基准,涵盖语言理解、知识应用、AI Agent智能体及安全性等12项核心能力。通过多轮对话与客观测试,定期发布榜单与技术报告,为模型研发、优化及行业选型提供科学依据。 </dd> <dd class="cont2">6次使用</dd> </dl> </li> <li> <a href="/ai/13853.html" target="_blank" title="腾讯扣叮官网:青少年编程教育平台,提供图形化编程、3D创作与虚拟仿真实验室" class="img_box"> <img src="/uploads/20260831/17881758316a9565d78b6be.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="腾讯扣叮官网:青少年编程教育平台,提供图形化编程、3D创作与虚拟仿真实验室" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13853.html" class="aBlack" target="_blank" title="腾讯扣叮">腾讯扣叮</a></dt> <dd class="cont1 lineTwoOverflow"> 腾讯扣叮是腾讯推出的6-18岁青少年编程学习平台,依托游戏与AI技术,提供图形化编程、3D创作、虚拟实验室及丰富赛事课程,助力培养计算思维与创新能力。 </dd> <dd class="cont2">3次使用</dd> </dl> </li> <li> <a href="/ai/13475.html" target="_blank" title="蓝字典AI求职:智能简历生成、面试模拟与职业规划一站式平台" class="img_box"> <img src="/uploads/20260831/17881668316a9542af127e8.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="蓝字典AI求职:智能简历生成、面试模拟与职业规划一站式平台" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13475.html" class="aBlack" target="_blank" title="蓝字典AI求职">蓝字典AI求职</a></dt> <dd class="cont1 lineTwoOverflow"> 蓝字典AI求职是一款高效的AI求职工具,提供智能简历生成、多语种模板、AI面试模拟及职业规划服务。支持电脑与手机端访问,助力求职者优化简历内容,提升面试技巧与求职成功率。 </dd> <dd class="cont2">15次使用</dd> </dl> </li> <li> <a href="/ai/13390.html" target="_blank" title="Toby实时语音翻译工具:跨语言视频通话解决方案与使用指南" class="img_box"> <img src="/uploads/20260831/17881704316a9550bf51436.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="Toby实时语音翻译工具:跨语言视频通话解决方案与使用指南" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13390.html" class="aBlack" target="_blank" title="Toby">Toby</a></dt> <dd class="cont1 lineTwoOverflow"> Toby是一款专为视频通话设计的AI实时语音翻译工具,支持多语言即时互译、低延迟转录及个性化词汇定制,兼容主流会议平台,助力跨国商务、教育及医疗场景实现无障碍沟通。 </dd> <dd class="cont2">11次使用</dd> </dl> </li> <li> <a href="/ai/13359.html" target="_blank" title="VMagic AI视频处理平台:一键换脸、照片跳舞与风格转换工具" class="img_box"> <img src="/uploads/20260831/17881722316a9557c76e01a.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="VMagic AI视频处理平台:一键换脸、照片跳舞与风格转换工具" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13359.html" class="aBlack" target="_blank" title="VMagic">VMagic</a></dt> <dd class="cont1 lineTwoOverflow"> 探索VMagic AI视频生成平台,提供视频风格转换、AI换脸、照片舞蹈、LivePortrait及画质增强功能。了解Basic/Pro/Pro+订阅价格及在社交媒体、广告和教育中的应用场景。 </dd> <dd class="cont2">6次使用</dd> </dl> </li> </ul> </div> <!-- 相关文章 --> <div class="rightContBox"> <div class="rightTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">相关文章</div> </div> <ul class="aboutArticleRList"> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/207000.html" class="aBlack" title="JavaScript函数定义及示例详解">JavaScript函数定义及示例详解</a></dt> <dd> <span class="left">2025-05-11</span> <span class="right">502浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/621422.html" class="aBlack" title="智能体安全引领产业升级——国内AI安全产品市场深度分析">智能体安全引领产业升级——国内AI安全产品市场深度分析</a></dt> <dd> <span class="left">2026-08-21</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/619053.html" class="aBlack" title="CSS变量简化按钮悬停效果技巧">CSS变量简化按钮悬停效果技巧</a></dt> <dd> <span class="left">2026-05-31</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/618916.html" class="aBlack" title="JavaScript符号类型详解与应用">JavaScript符号类型详解与应用</a></dt> <dd> <span class="left">2026-05-31</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/612539.html" class="aBlack" title="HTML剪贴板复制粘贴怎么用">HTML剪贴板复制粘贴怎么用</a></dt> <dd> <span class="left">2026-05-26</span> <span class="right">501浏览</span> </dd> </dl> </li> </ul> </div> </div> </div> <div class="footer"> <div class="footerIn"> <div class="footLeft"> <div class="linkBox"> <a href="/about/1.html" target="_blank" class="aBlack" title="关于我们">关于我们</a> <a href="/about/5.html" target="_blank" class="aBlack" title="免责声明">免责声明</a> <a href="#" class="aBlack" title="意见反馈">意见反馈</a> <a href="/about/2.html" class="aBlack" target="_blank" title="联系我们">联系我们</a> <a href="/send.html" class="aBlack" title="广告合作">内容提交</a> <a href="/manual/go/" target="_blank" class="aBlack" title="手册">手册</a> </div> <div class="footTip">Golang学习网:公益在线Go学习平台,帮助Go学习者快速成长!</div> <div class="shareBox"> <span><i class="qq"></i>技术交流群</span> </div> <div class="copyRight"> Copyright 2023 http://www.17golang.com/ All Rights Reserved | <a href="https://beian.miit.gov.cn/" target="_blank" title="备案">湘ICP备19018815号-4</a> </div> </div> <div class="footRight"> <ul class="encodeList"> <li> <div class="encodeImg"> <img src="/assets/examples/qrcode_for_gh.jpg" alt="Golang学习网"> </div> <div class="tit">关注公众号</div> <div class="tip">Golang学习网</div> </li> <div class="clear"></div> </ul> </div> <div class="clear"></div> </div> </div> <!-- 微信登录弹窗 --> <style> .popupBg .n-error{ color: red; } </style> <div class="popupBg"> <div class="loginBoxBox"> <div class="imgbg"> <img src="/assets/images/leftlogo.jpg" alt=""> </div> <!-- 微信登录 --> <div class="loginInfo encodeLogin" style="display: none;"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.passwordLogin').show();"> <div class="tip">密码登录在这里</div> </div> <div class="encodeInfo"> <div class="tit"><i></i> 微信扫码登录或注册</div> <div class="encodeImg"> <span id="wx_login_qrcode"><img src="/assets/examples/code.png" alt="二维码"></span> <!-- <div class="refreshBox"> <p>二维码失效</p> <button type="button" class="create_wxqrcode">刷新1111</button> </div> --> </div> <div class="tip">打开微信扫一扫,快速登录/注册</div> </div> <div class="beforeLoginTip">登录即同意 <a href="#" class="aBlue" title="用户协议">用户协议</a> 和 <a href="#" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 密码登录 --> <div class="loginInfo passwordLogin"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.encodeLogin').show();"> <div class="tip">微信登录更方便</div> </div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem loginFormLi curr">密码登录</li> <li class="selfTabItem registerFormBox ">注册账号</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont loginFormBox" style="display: block;"> <form name="form" id="login-form" class="form-vertical form" method="POST" action="/index/user/login"> <input type="hidden" name="url" value="//www.17golang.com/article/614549.html"/> <input type="hidden" name="__token__" value="5d55184e8ed5737292936156aff0312a" /> <div class="form-group" style="height:70px;"> <input class="form-control" id="account" type="text" name="account" value="" data-rule="required" placeholder="邮箱/用户名" autocomplete="off"> </div> <div class="form-group" style="height:70px;"> <input class="form-control" id="password" type="password" name="password" data-rule="required;password" placeholder="密码" autocomplete="off"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="other"> <a href="#" class="forgetPwd aGray" onclick="$('.loginInfo').hide();$('.passwordForget').show();" title="忘记密码">忘记密码</a> </div> <div class="loginBtn mt25"> <button type="submit">登录</button> </div> </form> </div> <div class="selfTabCont registerFormBox" style="display: none;"> <form name="form1" id="register-form" class="form-vertical form" method="POST" action="/index/user/register"> <input type="hidden" name="invite_user_id" value="0"/> <input type="hidden" name="url" value="//www.17golang.com/article/614549.html"/> <input type="hidden" name="__token__" value="5d55184e8ed5737292936156aff0312a" /> <div class="form-group" style="height:70px;"> <input type="text" name="email" id="email2" data-rule="required;email" class="form-control" placeholder="邮箱"> </div> <div class="form-group" style="height:70px;"> <input type="text" id="username" name="username" data-rule="required;username" class="form-control" placeholder="用户名必须3-30个字符"> </div> <div class="form-group" style="height:70px;"> <input type="password" id="password2" name="password" data-rule="required;password" class="form-control" placeholder="密码必须6-30个字符"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="loginBtn"> <button type="submit">注册</button> </div> </form> </div> </div> </div> <div class="beforeLoginTip">登录即同意 <a href="https://www.17golang.com/about/3.html" target="_blank" class="aBlue" title="用户协议">用户协议</a> 和 <a href="https://www.17golang.com/about/4.html" target="_blank" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 重置密码 --> <div class="loginInfo passwordForget"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="returnLogin cursorPointer" onclick="$('.passwordForget').hide();$('.passwordLogin').show();">返回登录</div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem">重置密码</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont"> <form id="resetpwd-form" class="form-horizontal form-layer nice-validator n-default n-bootstrap form" method="POST" action="/api/user/resetpwd.html" novalidate="novalidate"> <div style="height:70px;"> <input type="text" class="form-control" id="email" name="email" value="" placeholder="输入邮箱" aria-invalid="true"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <a href="javascript:;" class="btn btn-primary btn-captcha cursorPointer" style="background: #2080F8; border-radius: 4px; color: #fff; padding: 12px; position: absolute;" data-url="/api/ems/send.html" data-type="email" data-event="resetpwd">发送验证码</a> </span> </div> <input type="password" class="form-control" id="newpassword" name="newpassword" value="" placeholder="请输入6-18位密码"> <div class="loginBtn mt25"> <button type="submit">重置密码</button> </div> </form> </div> </div> </div> </div> </div> </div> <script src="/assets/js/juejin-theme.js?v=20260613b" defer></script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?e34c3e8ab31ba35d7e1c48ea8d77315f"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script src="/assets/js/frontend/common.js"></script> </body> </html>