当前位置:首页 > 文章列表 > Golang > Go教程 > Go语言爬虫教程:抓取网页标题方法

Go语言爬虫教程:抓取网页标题方法

2026-02-11 23:53:31 0浏览 收藏

你在学习Golang相关的知识吗?本文《Go语言实现网页标题抓取爬虫教程》,主要介绍的内容就涉及到,如果你想提升自己的开发能力,就不要错过这篇文章,大家要知道编程理论基础和实战操作都是不可或缺的哦!

使用Golang和goquery库可轻松抓取网页标题。首先安装goquery依赖,然后通过net/http发起GET请求获取网页内容,再用goquery.NewDocumentFromReader解析HTML,利用doc.Find("title").Text()提取标题文本。示例代码展示了从https://httpbin.org/html抓取标题的过程,并包含错误处理。为提高健壮性,建议设置HTTP客户端超时、添加User-Agent头以避免被屏蔽,同时检查响应状态码和Content-Type类型。该方法适用于小型爬虫或页面监控任务。

使用Golang和goquery库如何实现一个抓取网页标题的网络爬虫

使用Golang和goquery库抓取网页标题非常简单。你只需要发送一个HTTP请求获取网页内容,然后用goquery解析HTML并提取</code>标签的文本即可。</p><h3>安装依赖</h3><p>首先确保你安装了<code>goquery</code>库,它依赖于<code>net/html</code>和第三方的<code>casbin/parse</code>。运行以下命令安装:</p><font face="Courier New"><pre class="brush:php;toolbar:false">go get github.com/PuerkitoBio/goquery</pre></font><h3>发送HTTP请求并解析HTML</h3><p>Golang标准库中的<code>net/http</code>可以用来发起GET请求。将响应体传给<code>goquery.NewDocumentFromReader</code>,就可以用jQuery风格的选择器提取数据。</p><p>以下是一个完整示例,抓取指定URL的网页标题:</p><p><font face="Courier New"></font></p><pre class="brush:php;toolbar:false">package main <p>import ( "fmt" "log" "net/http"</p><pre class="brush:php;toolbar:false;">"github.com/PuerkitoBio/goquery"</pre><p>)</p><p>func fetchTitle(url string) { // 发起HTTP GET请求 resp, err := http.Get(url) if err != nil { log.Printf("请求失败: %v", err) return } defer resp.Body.Close()</p><pre class="brush:php;toolbar:false;">// 确保状态码是200 if resp.StatusCode != http.StatusOK { log.Printf("HTTP错误: %d", resp.StatusCode) return } // 使用goquery解析响应体 doc, err := goquery.NewDocumentFromReader(resp.Body) if err != nil { log.Printf("解析HTML失败: %v", err) return } // 查找title标签并获取内容 title := doc.Find("title").Text() if title == "" { fmt.Println("未找到标题") } else { fmt.Printf("标题: %s\n", title) }</pre><p>}</p><p>func main() { fetchTitle("<a target='_blank' href='https://www.17golang.com/gourl/?redirect=MDAwMDAwMDAwML57hpSHp6VpkrqbYLx2eayza4KafaOkbLS3zqSBrJvPsa5_0Ia6sWuR4Juaq6t9nq5roGCUgXuytMyerpV6iZXHe3vUmsyZr5vTk6bDeoKox3yFmnmyhqK_qrtog3Z4lb6InJSSp62xhph6mq-cm2i0jaCcfbOdorLdtKSCiYSXva6coQ'>https://httpbin.org/html</a>") }</p></pre><h3>处理常见问题</h3><p>实际使用中可能遇到网络超时、重定向、非UTF-8编码等问题。可以优化请求客户端来增强健壮性:</p><ul><li>设置超时时间避免卡住</li><li>检查Content-Type确保是HTML</li><li>对某些网站可能需要设置User-Agent防止被屏蔽</li></ul><p><font face="Courier New"></font></p><pre class="brush:php;toolbar:false">client := &http.Client{ Timeout: 10 * time.Second, } req, _ := http.NewRequest("GET", url, nil) req.Header.Set("User-Agent", "Mozilla/5.0 (compatible; GoCrawler/1.0)") <p>resp, err := client.Do(req)</p></pre><p>基本上就这些。用<code>goquery</code>提取网页标题简洁高效,适合小型爬虫或监控任务。</p><p>以上就是《Go语言爬虫教程:抓取网页标题方法》的详细内容,更多关于的资料请关注golang学习网公众号!</p> </div> <div class="labsList"> </div> <div class="cateBox"> <div class="cateItem"> <a href="/article/492677.html" title="绝地求生4.21版本更新内容全解析" class="img_box"> <img src="/uploads/20260211/1770825152698ca5c007973.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="绝地求生4.21版本更新内容全解析">绝地求生4.21版本更新内容全解析 </a> <dl> <dt class="lineOverflow"><a href="/article/492677.html" title="绝地求生4.21版本更新内容全解析" class="aBlack">上一篇<i></i></a></dt> <dd class="lineTwoOverflow">绝地求生4.21版本更新内容全解析</dd> </dl> </div> <div class="cateItem"> <a href="/article/492679.html" title="海棠书屋章节快速跳转方法" class="img_box"> <img src="/uploads/20260211/1770825273698ca63926d34.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="海棠书屋章节快速跳转方法"> </a> <dl> <dt class="lineOverflow"><a href="/article/492679.html" class="aBlack" title="海棠书屋章节快速跳转方法">下一篇<i></i></a></dt> <dd class="lineTwoOverflow">海棠书屋章节快速跳转方法</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/632768.html" class="img_box" title="Go time 怎样用 Date 获得指定时区的日期边界"> <img src="/uploads/20261018/1792272698-44be209954-5779ca0f94-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go time 怎样用 Date 获得指定时区的日期边界"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  3分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/632768.html" class="aBlack" target="_blank" title="Go time 怎样用 Date 获得指定时区的日期边界">Go time 怎样用 Date 获得指定时区的日期边界</a> </dt> <dd class="cont2"> <span><i class="view"></i>105浏览</span> <span class="collectBtn user_collection" data-id="632768" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632767.html" class="img_box" title="Go url.URL 怎样用 Opaque 字段表达不透明请求目标"> <img src="/uploads/20261018/1792272619-72d6f484f4-df9b119bc5-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go url.URL 怎样用 Opaque 字段表达不透明请求目标"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  5分钟前  |   <a href="/articletag/172_new_0_1.html" class="aLightGray" title="标准库">标准库</a> · <a href="/articletag/39686_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="net/url">net/url</a> <a href="javascript:;" class="aLightGray" title="RequestURI">RequestURI</a> <a href="javascript:;" class="aLightGray" title="url.URL">url.URL</a> <a href="javascript:;" class="aLightGray" title="Opaque">Opaque</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632767.html" class="aBlack" target="_blank" title="Go url.URL 怎样用 Opaque 字段表达不透明请求目标">Go url.URL 怎样用 Opaque 字段表达不透明请求目标</a> </dt> <dd class="cont2"> <span><i class="view"></i>280浏览</span> <span class="collectBtn user_collection" data-id="632767" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632766.html" class="img_box" title="Go time 怎样比较带单调时钟的时间间隔"> <img src="/uploads/20261018/1792272614-aa4d34e3da-976329ebee-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go time 怎样比较带单调时钟的时间间隔"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  5分钟前  |   <a href="/articletag/211_new_0_1.html" class="aLightGray" title="time">time</a> · <a href="/articletag/39686_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="时间间隔">时间间隔</a> <a href="javascript:;" class="aLightGray" title="time">time</a> <a href="javascript:;" class="aLightGray" title="time.Time">time.Time</a> <a href="javascript:;" class="aLightGray" title="单调时钟">单调时钟</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632766.html" class="aBlack" target="_blank" title="Go time 怎样比较带单调时钟的时间间隔">Go time 怎样比较带单调时钟的时间间隔</a> </dt> <dd class="cont2"> <span><i class="view"></i>340浏览</span> <span class="collectBtn user_collection" data-id="632766" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632765.html" class="img_box" title="Go url.URL 怎样从 URL 中区分 Hostname 和 Host"> <img src="/uploads/20261018/1792272413-96d800ba69-466cf009e7-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go url.URL 怎样从 URL 中区分 Hostname 和 Host"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  8分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/632765.html" class="aBlack" target="_blank" title="Go url.URL 怎样从 URL 中区分 Hostname 和 Host">Go url.URL 怎样从 URL 中区分 Hostname 和 Host</a> </dt> <dd class="cont2"> <span><i class="view"></i>156浏览</span> <span class="collectBtn user_collection" data-id="632765" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632764.html" class="img_box" title="Go http.ResponseController 怎样在处理器中读取连接 hijack 能力"> <img src="/uploads/20261018/1792272275-3b9eba85bc-6d8ca9cb7c-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go http.ResponseController 怎样在处理器中读取连接 hijack 能力"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  10分钟前  |   <a href="/articletag/39686_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a> · <a href="/articletag/39732_new_0_1.html" class="aLightGray" title="net/http">net/http</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="net/http">net/http</a> <a href="javascript:;" class="aLightGray" title="HTTP连接">HTTP连接</a> <a href="javascript:;" class="aLightGray" title="ResponseWriter">ResponseWriter</a> <a href="javascript:;" class="aLightGray" title="http.ResponseController">http.ResponseController</a> <a href="javascript:;" class="aLightGray" title="Hijack">Hijack</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632764.html" class="aBlack" target="_blank" title="Go http.ResponseController 怎样在处理器中读取连接 hijack 能力">Go http.ResponseController 怎样在处理器中读取连接 hijack 能力</a> </dt> <dd class="cont2"> <span><i class="view"></i>202浏览</span> <span class="collectBtn user_collection" data-id="632764" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632763.html" class="img_box" title="Go http.ResponseController 怎样检测 Flush 能力并平滑降级"> <img src="/uploads/20261018/1792272239-cbb4b79d42-ea22fbf7f5-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go http.ResponseController 怎样检测 Flush 能力并平滑降级"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  11分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/632763.html" class="aBlack" target="_blank" title="Go http.ResponseController 怎样检测 Flush 能力并平滑降级">Go http.ResponseController 怎样检测 Flush 能力并平滑降级</a> </dt> <dd class="cont2"> <span><i class="view"></i>246浏览</span> <span class="collectBtn user_collection" data-id="632763" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632762.html" class="img_box" title="Go regexp.Regexp ExpandString 怎样把命名捕获组展开到模板"> <img src="/uploads/20261018/1792272210-3db984626e-dad271ba19-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go regexp.Regexp ExpandString 怎样把命名捕获组展开到模板"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  12分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/632762.html" class="aBlack" target="_blank" title="Go regexp.Regexp ExpandString 怎样把命名捕获组展开到模板">Go regexp.Regexp ExpandString 怎样把命名捕获组展开到模板</a> </dt> <dd class="cont2"> <span><i class="view"></i>387浏览</span> <span class="collectBtn user_collection" data-id="632762" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632761.html" class="img_box" title="Go net/http ServeMux 怎样检查两个路由模式的冲突"> <img src="/uploads/20261018/1792271128-150d89732d-9ca4021461-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go net/http ServeMux 怎样检查两个路由模式的冲突"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  30分钟前  |   <a href="/articletag/39686_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a> · <a href="/articletag/39732_new_0_1.html" class="aLightGray" title="net/http">net/http</a> · <a href="/articletag/40367_new_0_1.html" class="aLightGray" title="ServeMux">ServeMux</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="net/http">net/http</a> <a href="javascript:;" class="aLightGray" title="路由冲突">路由冲突</a> <a href="javascript:;" class="aLightGray" title="ServeMux">ServeMux</a> <a href="javascript:;" class="aLightGray" title="Handle">Handle</a> <a href="javascript:;" class="aLightGray" title="路由模式">路由模式</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632761.html" class="aBlack" target="_blank" title="Go net/http ServeMux 怎样检查两个路由模式的冲突">Go net/http ServeMux 怎样检查两个路由模式的冲突</a> </dt> <dd class="cont2"> <span><i class="view"></i>117浏览</span> <span class="collectBtn user_collection" data-id="632761" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632760.html" class="img_box" title="Go slog.Handler.Enabled 怎样跳过低级别日志的昂贵计算"> <img src="/uploads/20261018/1792271046-fdecd86fa5-d3333861a7-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go slog.Handler.Enabled 怎样跳过低级别日志的昂贵计算"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  31分钟前  |   <a href="/articletag/172_new_0_1.html" class="aLightGray" title="标准库">标准库</a> · <a href="/articletag/594_new_0_1.html" class="aLightGray" title="go">go</a> · <a href="/articletag/729_new_0_1.html" class="aLightGray" title="性能优化">性能优化</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="log/slog">log/slog</a> <a href="javascript:;" class="aLightGray" title="LogValuer">LogValuer</a> <a href="javascript:;" class="aLightGray" title="LevelVar">LevelVar</a> <a href="javascript:;" class="aLightGray" title="Handler.Enabled">Handler.Enabled</a> <a href="javascript:;" class="aLightGray" title="日志性能">日志性能</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632760.html" class="aBlack" target="_blank" title="Go slog.Handler.Enabled 怎样跳过低级别日志的昂贵计算">Go slog.Handler.Enabled 怎样跳过低级别日志的昂贵计算</a> </dt> <dd class="cont2"> <span><i class="view"></i>324浏览</span> <span class="collectBtn user_collection" data-id="632760" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632759.html" class="img_box" title="Go net/http ServeMux 怎样用通配符读取路径值"> <img src="/uploads/20261018/1792270926-c1c624bdfd-e8537e4965-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go net/http ServeMux 怎样用通配符读取路径值"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  33分钟前  |   <a href="/articletag/172_new_0_1.html" class="aLightGray" title="标准库">标准库</a> · <a href="/articletag/594_new_0_1.html" class="aLightGray" title="go">go</a> · <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="net/http">net/http</a> <a href="javascript:;" class="aLightGray" title="ServeMux">ServeMux</a> <a href="javascript:;" class="aLightGray" title="PathValue">PathValue</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632759.html" class="aBlack" target="_blank" title="Go net/http ServeMux 怎样用通配符读取路径值">Go net/http ServeMux 怎样用通配符读取路径值</a> </dt> <dd class="cont2"> <span><i class="view"></i>282浏览</span> <span class="collectBtn user_collection" data-id="632759" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632758.html" class="img_box" title="Go encoding/json v2 怎样为 JSON v2 自定义字段编码器"> <img src="/uploads/20261018/1792270792-0eeb788ec8-efeca6967e-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go encoding/json v2 怎样为 JSON v2 自定义字段编码器"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  35分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/632758.html" class="aBlack" target="_blank" title="Go encoding/json v2 怎样为 JSON v2 自定义字段编码器">Go encoding/json v2 怎样为 JSON v2 自定义字段编码器</a> </dt> <dd class="cont2"> <span><i class="view"></i>207浏览</span> <span class="collectBtn user_collection" data-id="632758" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/632757.html" class="img_box" title="Go encoding/json v2 怎样用 omitzero 区分零值和缺省字段"> <img src="/uploads/20261018/1792270735-9155d5cd2a-49e9cd03ca-cover-640.webp" onerror="this.src='/assets/images/moren/morentu.png'" alt="Go encoding/json v2 怎样用 omitzero 区分零值和缺省字段"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  36分钟前  |   <a href="/articletag/172_new_0_1.html" class="aLightGray" title="标准库">标准库</a> · <a href="/articletag/594_new_0_1.html" class="aLightGray" title="go">go</a> · <a href="javascript:;" class="aLightGray" title="JSON">JSON</a> <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="零值">零值</a> <a href="javascript:;" class="aLightGray" title="omitzero">omitzero</a> <a href="javascript:;" class="aLightGray" title="encoding/json v2">encoding/json v2</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/632757.html" class="aBlack" target="_blank" title="Go encoding/json v2 怎样用 omitzero 区分零值和缺省字段">Go encoding/json v2 怎样用 omitzero 区分零值和缺省字段</a> </dt> <dd class="cont2"> <span><i class="view"></i>203浏览</span> <span class="collectBtn user_collection" data-id="632757" 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/13900.html" target="_blank" title="PubMedQA数据集详解:生物医学问答基准、功能与应用指南" class="img_box"> <img src="/uploads/20260908/6a9f83280940e7.65575695.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="PubMedQA数据集详解:生物医学问答基准、功能与应用指南" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13900.html" class="aBlack" target="_blank" title="PubMedQA">PubMedQA</a></dt> <dd class="cont1 lineTwoOverflow"> 深入了解PubMedQA生物医学问答数据集,涵盖其核心功能、使用方法及在临床决策、药物研发等场景的应用,助力提升NLP模型性能。 </dd> <dd class="cont2">512次使用</dd> </dl> </li> <li> <a href="/ai/13899.html" target="_blank" title="H2O EvalGPT:开源LLM大模型评估与排行榜工具" class="img_box"> <img src="/uploads/20260908/17887986376a9ee6adaf3f5.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="H2O EvalGPT:开源LLM大模型评估与排行榜工具" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13899.html" class="aBlack" target="_blank" title="H2O EvalGPT">H2O EvalGPT</a></dt> <dd class="cont1 lineTwoOverflow"> H2O EvalGPT是H2O.ai推出的开源LLM评估平台,提供详细的大模型性能排行榜、行业特定基准测试及A/B测试功能,助您快速选择最适合项目的高性能大语言模型。 </dd> <dd class="cont2">572次使用</dd> </dl> </li> <li> <a href="/ai/13898.html" target="_blank" title="LMArena是什么?伯克利AI模型评估平台使用指南与功能解析" class="img_box"> <img src="/uploads/20260908/6a9f862dbcfec7.27385604.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="LMArena是什么?伯克利AI模型评估平台使用指南与功能解析" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13898.html" class="aBlack" target="_blank" title="LMArena">LMArena</a></dt> <dd class="cont1 lineTwoOverflow"> LMArena是加州大学伯克利分校推出的AI模型匿名评测平台。通过盲测投票机制,用户可对比不同大模型回答并生成实时排行榜,助力开发者优化模型及用户选择最佳AI工具。 </dd> <dd class="cont2">597次使用</dd> </dl> </li> <li> <a href="/ai/13897.html" target="_blank" title="斯坦福HELM:大语言模型Holistic Evaluation整体评估框架详解" class="img_box"> <img src="/uploads/20260908/6a9f86b31ed789.06773114.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="斯坦福HELM:大语言模型Holistic Evaluation整体评估框架详解" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13897.html" class="aBlack" target="_blank" title="HELM">HELM</a></dt> <dd class="cont1 lineTwoOverflow"> 深入了解斯坦福推出的HELM(Holistic Evaluation of Language Models)大模型评测体系。本文解析其核心功能、安装配置步骤及应用场景,涵盖准确性、公平性、鲁棒性等多维度指标,助力开发者全面优化语言模型性能。 </dd> <dd class="cont2">549次使用</dd> </dl> </li> <li> <a href="/ai/13896.html" target="_blank" title="MMBench详解:多模态大模型基准测试、功能特点与使用指南" class="img_box"> <img src="/uploads/20260908/6a9f86d3eed3e7.18564236.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="MMBench详解:多模态大模型基准测试、功能特点与使用指南" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13896.html" class="aBlack" target="_blank" title="MMBench">MMBench</a></dt> <dd class="cont1 lineTwoOverflow"> MMBench是由上海人工智能实验室等机构联合推出的多模态基准测试平台,提供细粒度能力评估、大规模数据集及VLMEvalKit工具。本文详细介绍其核心功能、安装使用方法及应用场景,助力开发者全面评估多模态模型性能。 </dd> <dd class="cont2">366次使用</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/619847.html" class="aBlack" title="Java 性能优化上线清单:从定位、改造到灰度发布">Java 性能优化上线清单:从定位、改造到灰度发布</a></dt> <dd> <span class="left">2026-06-11</span> <span class="right">860浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/619846.html" class="aBlack" title="Spring Boot 压测验证:Gatling、JMeter 与性能回归门禁">Spring Boot 压测验证:Gatling、JMeter 与性能回归门禁</a></dt> <dd> <span class="left">2026-06-11</span> <span class="right">843浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/619845.html" class="aBlack" title="Java NMT 非堆内存排查:Direct Buffer、线程栈与 Metaspace 分析">Java NMT 非堆内存排查:Direct Buffer、线程栈与 Metaspace 分析</a></dt> <dd> <span class="left">2026-06-11</span> <span class="right">826浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/619844.html" class="aBlack" title="Spring Boot 容器内存优化:JVM 堆、非堆与 MaxRAMPercentage">Spring Boot 容器内存优化:JVM 堆、非堆与 MaxRAMPercentage</a></dt> <dd> <span class="left">2026-06-11</span> <span class="right">809浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/619843.html" class="aBlack" title="Tomcat 连接与线程参数调优:maxThreads、acceptCount 与 KeepAlive">Tomcat 连接与线程参数调优:maxThreads、acceptCount 与 KeepAlive</a></dt> <dd> <span class="left">2026-06-11</span> <span class="right">792浏览</span> </dd> </dl> </li> </ul> </div> </div> </div> <script src="/assets/js/frontend/common.js"></script> </body> </html>