HTML onkeypress 事件属性详解

当我们需要捕获用户的键盘输入时,onkeypress 事件属性是一个常用的工具。只要用户按下键盘上的某个键,该属性就会被触发。不过,我们需要特别注意,在所有浏览器中,这个事件并不能识别所有的按键(例如 ALT、CTRL、SHIFT、ESC 等功能键通常不会触发它)。

支持的标签:

除了以下几个标签外,所有的 HTML 元素都支持 onkeypress 属性:

  • </li> </ul> <p><strong><em><em>语法:</em></strong></em></p> <pre><code> </code></pre> <p><strong><em><em>属性详解:</em></strong></em></p> <p>如果我们需要捕获所有按键(包括前面提到的那些功能键),INLINECODE<em>5841b74a 属性通常是更好的选择,因为它在所有浏览器中对所有按键都有效。当 INLINECODE</em>de140775 事件被触发时,我们指定的脚本就会运行。</p> <p><strong><em><em>注意:</em></strong></em></p> <p>需要注意的是,<strong>这个属性已经被弃用(Deprecated)</strong>,我们不再推荐在新的开发项目中使用它。为了让大家更清楚地理解事件发生的顺序,以下是相关的键盘事件触发顺序:</p> <ul> <li>onkeydown(按键按下)</li> <li>onkeypress(按键字符输入)</li> <li>onkeyup(按键松开)</li> </ul> <p><strong><em><em>示例:</em></strong></em></p> <p>让我们通过一个简单的代码示例来看看它是如何工作的。</p> <p>HTML</p> <p><code><br /> CODEBLOCK_cfaea07e<br /> </code><br /> <strong><em><em>输出效果:</em></strong></em></p> <p>!<a href="https://media.geeksforgeeks.org/wp-content/uploads/20240829135051/ON.gif" target="_blank" rel="nofollow" >ON</a>HTML onkeypress 属性示例输出</p> <p><strong><em><em>支持的浏览器:</em></strong></em></p> <p><code>onkeypress</code> 事件属性在以下浏览器中均能得到支持:</p> <ul> <li><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/techtips/google-chrome-browser-training-and-support/" target="_blank" rel="nofollow" >Google Chrome</a></li> <li><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/techtips/microsoft-edge-browser/" target="_blank" rel="nofollow" >Edge</a><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/software-engineering/internet-explorer-mode-in-microsoft-edge/" target="_blank" rel="nofollow" >https://www.geeksforgeeks.org/software-engineering/internet-explorer-mode-in-microsoft-edge/</a></li> <li><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/techtips/mozilla-firefox-browser/" target="_blank" rel="nofollow" >Firefox</a></li> <li><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/techtips/opera-browser/" target="_blank" rel="nofollow" >Opera</a></li> <li><a href="https://shluqu.cn/go/?url=https://www.geeksforgeeks.org/techtips/apple-safari-browser/" target="_blank" rel="nofollow" >Safari</a></li> </ul> </div> <footer class="kratos-entry-footer clearfix"> <div class="post-note">声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。如需转载,请注明文章出处豆丁博客和来源网址。<a href="https://shluqu.cn/43641.html">https://shluqu.cn/43641.html</a></div> <div class="ph-item"> <div class="ph-col-12"> <div class="ph-rosd"> <div class="ph-col-6 big"> <div class="post-like-donate text-center clearfix" id="post-like-donate"> <a href="javascript:;" id="btn" data-action="love" data-id="43641" class="Love "><i class="fa fa-thumbs-o-up"></i> 点赞</a> <a href="javascript:;" class="Share"><i class="fa fa-share-alt"></i> 分享</a> <div class="share-wrap" style="display: none;"> <div class="share-group"> <a href="javascript:;" class="share-plain twitter" onclick="share('qq');" rel="nofollow"> <div class="icon-wrap"> <i class="fa fa-qq"></i> </div> </a> <a href="javascript:;" class="share-plain weibo" onclick="share('weibo');" rel="nofollow"> <div class="icon-wrap"> <i class="fa fa-weibo"></i> </div> </a> <a href="javascript:;" class="share-plain facebook style-plain" onclick="share('facebook');" rel="nofollow"> <div class="icon-wrap"> <i class="fa fa-facebook"></i> </div> </a> <a href="javascript:;" class="share-plain weixin pop style-plain" rel="nofollow"> <div class="icon-wrap"> <i class="fa fa-weixin"></i> </div> </a> <div class="share-int"> <div class="qrcode" data-url="https://shluqu.cn/43641.html"></div> <p>打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮</p> </div> </div> <script type="text/javascript"> function share(obj){ var qqShareURL="http://connect.qq.com/widget/shareqq/index.html?"; var weiboShareURL="http://service.weibo.com/share/share.php?"; var facebookShareURL="https://www.facebook.com/sharer/sharer.php?"; var twitterShareURL="https://twitter.com/intent/tweet?"; var host_url="https://shluqu.cn/43641.html"; var title='%E3%80%90HTML%20onkeypress%20%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7%E8%AF%A6%E8%A7%A3%E3%80%91'; var qqtitle='%E3%80%90HTML%20onkeypress%20%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7%E8%AF%A6%E8%A7%A3%E3%80%91'; var excerpt='%E5%BD%93%E6%88%91%E4%BB%AC%E9%9C%80%E8%A6%81%E6%8D%95%E8%8E%B7%E7%94%A8%E6%88%B7%E7%9A%84%E9%94%AE%E7%9B%98%E8%BE%93%E5%85%A5%E6%97%B6%EF%BC%8Conkeypress%20%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7%E6%98%AF%E4%B8%80%E4%B8%AA%E5%B8%B8%E7%94%A8%E7%9A%84%E5%B7%A5%E5%85%B7%E3%80%82%E5%8F%AA%E8%A6%81%E7%94%A8%E6%88%B7%E6%8C%89%E4%B8%8B%E9%94%AE%E7%9B%98%E4%B8%8A%E7%9A%84%E6%9F%90%E4%B8%AA%E9%94%AE%EF%BC%8C%E8%AF%A5%E5%B1%9E%E6%80%A7%E5%B0%B1%E4%BC%9A%E8%A2%AB%E8%A7%A6%E5%8F%91%E3%80%82%E4%B8%8D%E8%BF%87%EF%BC%8C%E6%88%91%E4%BB%AC%E9%9C%80%E8%A6%81%E7%89%B9%E5%88%AB%E6%B3%A8%E6%84%8F%EF%BC%8C%E5%9C%A8%E6%89%80%E6%9C%89%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%AD%EF%BC%8C%E8%BF%99%E4%B8%AA%E4%BA%8B%E4%BB%B6%E5%B9%B6%E4%B8%8D%E8%83%BD%E8%AF%86%E5%88%AB%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%89%E9%94%AE%EF%BC%88%E4%BE%8B%E5%A6%82%20ALT%E3%80%81CTRL%E3%80%81%E2%80%A6%E2%80%A6'; var wbexcerpt='%E5%BD%93%E6%88%91%E4%BB%AC%E9%9C%80%E8%A6%81%E6%8D%95%E8%8E%B7%E7%94%A8%E6%88%B7%E7%9A%84%E9%94%AE%E7%9B%98%E8%BE%93%E5%85%A5%E6%97%B6%EF%BC%8Conkeypress%20%E4%BA%8B%E4%BB%B6%E5%B1%9E%E6%80%A7%E6%98%AF%E4%B8%80%E4%B8%AA%E5%B8%B8%E7%94%A8%E7%9A%84%E5%B7%A5%E5%85%B7%E3%80%82%E5%8F%AA%E8%A6%81%E7%94%A8%E6%88%B7%E6%8C%89%E4%B8%8B%E9%94%AE%E7%9B%98%E4%B8%8A%E7%9A%84%E6%9F%90%E4%B8%AA%E9%94%AE%EF%BC%8C%E8%AF%A5%E5%B1%9E%E6%80%A7%E5%B0%B1%E4%BC%9A%E8%A2%AB%E8%A7%A6%E5%8F%91%E3%80%82%E4%B8%8D%E8%BF%87%EF%BC%8C%E6%88%91%E4%BB%AC%E9%9C%80%E8%A6%81%E7%89%B9%E5%88%AB%E6%B3%A8%E6%84%8F%EF%BC%8C%E5%9C%A8%E6%89%80%E6%9C%89%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%AD%EF%BC%8C%E8%BF%99%E4%B8%AA%E4%BA%8B%E4%BB%B6%E5%B9%B6%E4%B8%8D%E8%83%BD%E8%AF%86%E5%88%AB%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%89%E9%94%AE%EF%BC%88%E4%BE%8B%E5%A6%82%20ALT%E3%80%81CTRL%E3%80%81%E2%80%A6%E2%80%A6'; var pic=""; var _URL; if(obj=="qq"){ _URL=qqShareURL+"url="+host_url+"&title="+qqtitle+"&pics="+pic+"&desc=&summary="+excerpt+"&site=vtrois"; }else if(obj=="weibo"){ _URL=weiboShareURL+"url="+host_url+"&title="+title+wbexcerpt+"&pic="+pic; }else if(obj=="facebook"){ _URL=facebookShareURL+"u="+host_url; }else if(obj=="twitter"){ _URL=twitterShareURL+"text="+title+excerpt+"&url="+host_url; } window.open(_URL); } </script> </div> </div> </div> <div class="ph-col-6 big"> <div class="post-ratings" data-post="43641"> <div class="rating" data-post="43641" data-rating="0" data-readonly="0"style="text-align: center;color: #FFD700;"></div> <div class="rating-meta" style="text-align: center;"> <strong>0.00</strong> 平均评分 (<strong>0</strong>% 分数) - <strong class="votes">0</strong> 票 </div> </div></div> </div> </div> </div> <div class="footer-tag clearfix"> <div class="pull-left"> <i class="fa fa-tags"></i> </div> </div> </footer> </div> <nav class="navigation post-navigation clearfix" role="navigation"> <div class="nav-previous clearfix"> <a title="深入理解计算机网络中的多路访问协议:从基础到实战" href="https://shluqu.cn/43640.html">< 上一篇</a> </div> <div class="nav-next"> <a title="什么是文件拆分?" href="https://shluqu.cn/43642.html">下一篇 ></a> </div> </nav><br /> <div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-share-alt" aria-hidden="true"></i>相关文章<span class="section-h3-more-link"><i class="fa fa-volume-up" aria-hidden="true" style="color:#ec004a;"></i><a href="/7811.html">美国1G带宽/1T流量高速vps $17.99/年</a></span> </h3> </div> <div id="respond" class="comment-respond"> <div id="recent-content"> <div id="zazhi-2-home-block-one-5" class="widget-zazhi-2-home-block-one"> <div class="content-block content-block-1 clear"> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43837.html" title="2026年全栈AI视角:深入解析自然语言处理中的信息抽取">2026年全栈AI视角:深入解析自然语言处理...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43836.html" title="寻找无向图中所有大小为 K 的团:算法原理与实战解析">寻找无向图中所有大小为 K 的团:算法原理...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43835.html" title="深入解析 MMS:多媒体信息服务的原理、架构与应用开发指南">深入解析 MMS:多媒体信息服务的原理、架...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43834.html" title="2026 视角:如何用 Python 高效批量重命名文件 —— 从基础脚本到智能化工程实践">2026 视角:如何用 Python 高效批量重命名...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43833.html" title="深入解析:如何在 Pandas DataFrame 中高效检查和处理 NaN 值">深入解析:如何在 Pandas DataFrame 中高...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43832.html" title="PostgreSQL BETWEEN 运算符深度指南:从基础原理到 2026 年企业级实战">PostgreSQL BETWEEN 运算符深度指南:从基...</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43831.html" title="深入解析 Scala 列表:从基础原理到实战应用">深入解析 Scala 列表:从基础原理到实战应用</a> </div> <div class="post-list-1 hentry "><a rel="bookmark" href="https://shluqu.cn/43830.html" title="Python 正则表达式核心指南:深入解析 re.search() 与 re.match() 的实战差异">Python 正则表达式核心指南:深入解析 re....</a> </div> </div> </div> </div> </div> <div id="comments" class="comments-area"> </div> </article> </section> <aside id="kratos-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy"> <div id="sidebar"> <span><style type="text/css"></style><style type="text/css"></style><aside id="custom_html-9" class="widget_text widget widget_custom_html clearfix"><div class="textwidget custom-html-widget"><p>热门搜索: <a href="https://shluqu.cn/go/tengxun.html" target="_blank" rel="nofollow noopener">腾讯云</a> <a href="https://shluqu.cn/go/aliyun.html" target="_blank" rel="nofollow noopener">阿里云</a> <a href="https://shluqu.cn/go/?url=https://www.sugarhosts.com/members/aff.php?aff=3508" rel="nofollow noopener" target="_blank">SugarHosts</a> </p> <form data-min-no-for-search="1" data-result-box-max-height="400" data-form-id="5325" class="is-search-form is-form-style is-form-style-3 is-form-id-5325 is-ajax-search" action="https://shluqu.cn/" method="get" role="search" ><label for="is-search-input-5325"><span class="is-screen-reader-text">Search for:</span><input type="search" id="is-search-input-5325" name="s" value="" class="is-search-input" placeholder="输入主机商名称、关键词" autocomplete="off" /><span class="is-loader-image" style="display: none;background-image:url(https://shluqu.cn/wp-content/plugins/add-search-to-menu/public/images/spinner.gif);" ></span></label><button type="submit" class="is-search-submit"><span class="is-screen-reader-text">搜索按钮</span><span class="is-search-icon"><svg focusable="false" aria-label="Search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button><input type="hidden" name="id" value="5325" /><input type="hidden" name="post_type" value="post" /></form> <br/> <form data-min-no-for-search="1" data-result-box-max-height="400" data-form-id="5324" class="is-search-form is-form-style is-form-style-3 is-form-id-5324 is-ajax-search" action="https://shluqu.cn/" method="get" role="search" ><label for="is-search-input-5324"><span class="is-screen-reader-text">Search for:</span><input type="search" id="is-search-input-5324" name="s" value="" class="is-search-input" placeholder="搜索全站文章" autocomplete="off" /><span class="is-loader-image" style="display: none;background-image:url(https://shluqu.cn/wp-content/plugins/add-search-to-menu/public/images/spinner.gif);" ></span></label><button type="submit" class="is-search-submit"><span class="is-screen-reader-text">搜索按钮</span><span class="is-search-icon"><svg focusable="false" aria-label="Search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg></span></button><input type="hidden" name="id" value="5324" /><input type="hidden" name="post_type" value="post" /></form> </div></aside><aside id="custom_html-8" class="widget_text widget widget_custom_html clearfix"><div class="textwidget custom-html-widget"><div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-info-circle" aria-hidden="true"></i>热点解答</h3> </div> <h2 align="center"> 你需要了解…… </h2> <table style="width:100%;border: 1px solid #2220;" bordercolor="#000000" cellspacing="0" cellpadding="2" border="0"> <tbody> <tr> <td> <a href="https://shluqu.cn/tougao"> <p><i aria-hidden="true" class="fa fa-envelope fa-2x" style="color:#2a5cbf;"></i></p> <p>投稿给我们</p> </a> </td> <td> <a href="https://shluqu.cn/2816.html"> <p><i aria-hidden="true" class="fa fa-graduation-cap fa-2x" style="color:#2a5cbf;"></i></p> <p>如何建站?</p> </a> </td> </tr> <tr> <td> <a href="https://shluqu.cn/8368.html"> <p><i aria-hidden="true" class="fa fa-linux fa-2x" style="color:#2a5cbf;"></i></p> <p>vps是什么?</p> </a> </td> <td> <a href="https://shluqu.cn/16486.html"> <p><i aria-hidden="true" class="fa fa-television fa-2x" style="color:#2a5cbf;"></i></p> <p>如何安装宝塔?</p> </a> </td> </tr> <tr> <td> <a href="https://shluqu.cn/tag/bokezhuanqian"> <p><i aria-hidden="true" class="fa fa-usd fa-2x" style="color:#2a5cbf;"></i></p> <p>如何通过博客赚钱?</p> </a> </td> <td> <a href="https://shluqu.cn/16.html"> <p><i aria-hidden="true" class="fa fa-wordpress fa-2x" style="color:#2a5cbf;"></i></p> <p>便宜wordpress托管方案</p> </a> </td> </tr> <tr> <td> <a href="https://shluqu.cn/free-wordpress-themes"> <p><i aria-hidden="true" class="fa fa-wordpress fa-2x" style="color:#ec004a;"></i></p> <p>免费wordpress主题</p> </a> </td> <td> <a href="https://shluqu.cn/tag/free-plan"> <p><i aria-hidden="true" class="fa fa-database fa-2x" style="color:#2a5cbf;"></i></p> <p>这些都是免费方案</p> </a> </td> </tr> </tbody> </table></div></aside><aside id="shortcodes-ultimate-2" class="widget shortcodes-ultimate clearfix"><div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-cog" aria-hidden="true"></i>代理IP - 赞助商</h3></div><div class="textwidget"><a href="https://shluqu.cn/go/proxy-seller" target="_blank" rel="nofollow"><div align="center"><img src="https://shluqu-1252205774.file.myqcloud.com/wp-content/uploads/2025/07/20250703081311524.jpg" border=0></div></a> <br/> <a href="https://shluqu.cn/go/iproyal" target="_blank" rel="nofollow"><div align="center"><img src="https://shluqu-1252205774.file.myqcloud.com/wp-content/uploads/2025/07/20250703081313321.jpg" border=0></div></a><br/> <div class="su-list" style="margin-left:0px"> <ul> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>最强悍的住宅代理:<a href="https://brightproxies.com/" target="_blank" rel="nofollow noopener">Brightdata</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>4G代理的选择:<a href=" https://www.dailiproxy.com/proxy-seller.com" target="_blank" rel="nofollow noopener">Proxy-Seller</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>性价比的选择:<a href=" https://www.dailiproxy.com/smartproxy.com" target="_blank" rel="nofollow noopener">Smartproxy</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>静态住宅代理:<a href="https://www.dailiproxy.com/go/proxy-ipv4.com" target="_blank" rel="nofollow noopener">Proxy-IPV4</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>便宜的住宅代理:<a href=" https://www.dailiproxy.com/proxy-cheap.com" target="_blank" rel="nofollow noopener">Proxy-Cheap</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>无穷流量的选择:<a href=" https://www.dailiproxy.com/shifter.io" target="_blank" rel="nofollow noopener">Shifter</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>代理新手的选择:<a href="https://www.dailiproxy.com/go/iproyal.com" target="_blank" rel="nofollow noopener">IProyal</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>数据中心的选择:<a href=" https://www.dailiproxy.com/my-private-proxies" target="_blank" rel="nofollow noopener">Myprivateproxy</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>旋转数据代理:<a href="https://www.dailiproxy.com/webshare.io" target="_blank" rel="nofollow noopener">WebShare Proxy</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>社交账户代理:<a href="https://www.dailiproxy.com/go/proxy-sale.com" target="_blank" rel="nofollow noopener">Proxy-Sale</a></strong></li> <li><i class="sui sui-hand-o-right" style="color:#1512d3"></i> <strong>小众的住宅代理:<a href="https://www.dailiproxy.com/go/soax" target="_blank" rel="nofollow noopener">Soax</a></strong></li> </ul> </div> 赞助By:<a href=" https://www.dailiproxy.com" target="_blank" rel="nofollow noopener">Dailiproxy</a></div></aside><aside id="custom_html-7" class="widget_text widget widget_custom_html clearfix"><div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-cog" aria-hidden="true"></i>VPS 赞助商</h3></div><div class="textwidget custom-html-widget"><a href="http://www.west.cn/?ReferenceID=1901161" target="_blank" rel="nofollow noopener"><div align="center"><img src="https://shluqu-1252205774.file.myqcloud.com/wp-content/uploads/2022/03/20220330131043593.jpg" border=0></div></a> <br/> <p style="font-size: 14px;">豆丁博客专注国外VPS、国外服务器、国外虚拟主机、国外代理IP推荐,我们从用户使用体验出发,对国外VPS主机价格、速度、可靠性、客服等多个方面进行测评,为你推荐优秀的国外VPS/服务器/虚拟主机。同时我们还会分享最新的主机优惠码,让你花少的钱买到性价比较高的主机。</p> <a href="https://www.digitalocean.com/?refcode=3f858506cd39&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><div align="center"><img src="https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg" alt="DigitalOcean Referral Badge" /></div></a></div></aside> <aside id="recent-posts-2" class="widget widget_recent_entries clearfix"> <div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-cog" aria-hidden="true"></i>最近文章</h3></div> <ul> <li> <a href="https://shluqu.cn/43837.html">2026年全栈AI视角:深入解析自然语言处理中的信息抽取</a> </li> <li> <a href="https://shluqu.cn/43836.html">寻找无向图中所有大小为 K 的团:算法原理与实战解析</a> </li> <li> <a href="https://shluqu.cn/43835.html">深入解析 MMS:多媒体信息服务的原理、架构与应用开发指南</a> </li> <li> <a href="https://shluqu.cn/43834.html">2026 视角:如何用 Python 高效批量重命名文件 —— 从基础脚本到智能化工程实践</a> </li> <li> <a href="https://shluqu.cn/43833.html">深入解析:如何在 Pandas DataFrame 中高效检查和处理 NaN 值</a> </li> <li> <a href="https://shluqu.cn/43832.html">PostgreSQL BETWEEN 运算符深度指南:从基础原理到 2026 年企业级实战</a> </li> <li> <a href="https://shluqu.cn/43831.html">深入解析 Scala 列表:从基础原理到实战应用</a> </li> <li> <a href="https://shluqu.cn/43830.html">Python 正则表达式核心指南:深入解析 re.search() 与 re.match() 的实战差异</a> </li> </ul> </aside> <aside id="kratos_tags-3" class="widget widget_kratos_tags clearfix"> <div id="recent-content"> <div class="obs-heng-link"> <h3 class="obs-heng-a"><i class="fa fa-book" aria-hidden="true"></i>相关专题</h3> </div> <div id="zazhi-2-home-block-one-5" class="widget-zazhi-2-home-block-one"> <div class="content-block content-block-1 clear"> </div> </div> </div> </aside> </span> </div> </aside> </div> </div> </div> <div class="navs"> <ul> <li> <a href="https://www.shluqu.cn/"><span class="font-text"><i class="fa-home fa"></i> 首页</span></a></li> <li> <a href="https://www.shluqu.cn/developer-tools"><span class="font-text"><i class="fa fa-pencil"></i>主机</span></a></li> <li> <a href="https://www.shluqu.cn/category/zhihudati"><span class="font-text"><i class="fa fa-at"></i>问答</span></a></li> <li> <a href="https://www.shluqu.cn/category/technology"><span class="font-text"><i class="fa fa-plus-square"></i> 技术</span></a></li> <li> <a href="https://www.shluqu.cn/category/make-money"><span class="font-text"><i class="fa fa-usd"></i> 赚钱</span></a></li> </ul> </div> <footer> <div id="footer"> <div class="cd-tool text-center"> <div class="gotop-box"><div class="gotop-btn"><span class="fa fa-chevron-up"></span></div></div> <div class="search-box"> <span class="fa fa-search"></span> <form class="search-form" role="search" method="get" id="searchform" action="https://shluqu.cn/"> <input type="text" name="s" id="search" placeholder="Search..." style="display:none"/> </form> </div> </div> <table width="80%" height="35" border="0" align="center" style="border: #2220;"> <tbody><tr> <td width="50%" style="color: #fff;"> <a class="Home11" href="https://www.shluqu.cn/4284.html">常见问题</a>  |  <a class="Home11" target="_blank" href="https://www.shluqu.cn/sitemap">网站地图</a>  |  <a class="Home11" href="https://about.shluqu.cn/">豆丁科技</a>  |  <a class="Home11" target="_blank" href="https://www.shluqu.cn/cloud-computing-keywords">关键词</a>  |  <a class="Home11" target="_blank" href="https://www.shluqu.cn/aliyun/">阿里云优惠</a> <br/> <a class="Home11" target="_blank" href="https://www.shluqu.cn/tougao">投稿</a>  |  <a class="Home11" href="https://www.shluqu.cn/guanyuwomen">关于我们</a>  |  <a class="Home11" href="https://www.shluqu.cn/zanzhushanghezuo">赞助商合作</a>  |  <a class="Home11" href="https://www.shluqu.cn/terms-of-service">服务条款</a>  |  <a class="Home11" href="https://www.shluqu.cn/privacy-policy">隐私政策</a> </td> <td width="50%" id="beian" class="has-text-centered is-size-7"> <a style="color: #f4f4f4;" target="_blank" rel="nofollow" href="http://beian.miit.gov.cn">鄂ICP备19029286号-4</a> <a style="color: #f4f4f4;" target="_blank" rel="nofollow" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42118102000305"><img src="https://shluqu-1252205774.file.myqcloud.com/wp-content/uploads/2021/11/20211102110945832.png" alt="公安备案">鄂公网安备 42118102000305号 </a><p style="color: #f4f4f4;">© 2002-2026 <a  href="https://www.shluqu.cn/">豆丁博客</a> Inc. All rights reserved.Powered by <a  href="https://www.shluqu.cn/">豆丁博客</a></p></td> </tr> </tbody></table> <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3 footer-list text-center"> <p class="kratos-social-icons"> </p> </div> </div> </div> </div> </footer> </div> </div> <style type="text/css" media="screen">.is-menu path.search-icon-path { fill: #ffffff;}body .popup-search-close:after, body .search-close:after { border-color: #ffffff;}body .popup-search-close:before, body .search-close:before { border-color: #ffffff;}</style><link rel='stylesheet' id='ivory-ajax-search-styles-css' href='https://shluqu.cn/wp-content/plugins/add-search-to-menu/public/css/ivory-ajax-search.min.css?ver=4.6.5' type='text/css' media='all' /> <link rel='stylesheet' id='su-icons-css' href='https://shluqu.cn/wp-content/plugins/shortcodes-ultimate/includes/css/icons.css?ver=1.1.5' type='text/css' media='all' /> <link rel='stylesheet' id='su-shortcodes-css' href='https://shluqu.cn/wp-content/plugins/shortcodes-ultimate/includes/css/shortcodes.css?ver=5.10.2' type='text/css' media='all' /> <script type='text/javascript' src='https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=7.4.4' id='wp-polyfill-js'></script> <script type='text/javascript' id='wp-polyfill-js-after'> ( 'fetch' in window ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-fetch.min.js?ver=3.0.0"></scr' + 'ipt>' );( document.contains ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-node-contains.min.js?ver=3.42.0"></scr' + 'ipt>' );( window.DOMRect ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-dom-rect.min.js?ver=3.42.0"></scr' + 'ipt>' );( window.URL && window.URL.prototype && window.URLSearchParams ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-url.min.js?ver=3.6.4"></scr' + 'ipt>' );( window.FormData && window.FormData.prototype.keys ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-formdata.min.js?ver=3.0.12"></scr' + 'ipt>' );( Element.prototype.matches && Element.prototype.closest ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js?ver=2.0.2"></scr' + 'ipt>' );( 'objectFit' in document.documentElement.style ) || document.write( '<script src="https://shluqu.cn/wp-includes/js/dist/vendor/wp-polyfill-object-fit.min.js?ver=2.3.4"></scr' + 'ipt>' ); </script> <script type='text/javascript' id='contact-form-7-js-extra'> /* <![CDATA[ */ var wpcf7 = {"api":{"root":"https:\/\/shluqu.cn\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"}; /* ]]> */ </script> <script type='text/javascript' src='https://shluqu.cn/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.4.2' id='contact-form-7-js'></script> <script type='text/javascript' id='toc-front-js-extra'> /* <![CDATA[ */ var tocplus = {"visibility_show":"\u663e\u793a","visibility_hide":"\u9690\u85cf","width":"33%"}; /* ]]> */ </script> <script type='text/javascript' src='http://shluqu.cn/wp-content/plugins/table-of-contents-plus/front.min.js?ver=2106' id='toc-front-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/jquery.easing.min.js?ver=1.3.0' id='easing-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/jquery.qrcode.min.js?ver=2.8' id='qrcode-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/layer.min.js?ver=3.0.3' id='layer-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/bootstrap.min.js?ver=3.3.7' id='bootstrap-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/jquery.waypoints.min.js?ver=4.0.0' id='waypoints-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/jquery.stellar.min.js?ver=0.6.2' id='stellar-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/hoverIntent.min.js?ver=r7' id='hoverIntents-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/superfish.js?ver=1.0.0' id='superfish-js'></script> <script type='text/javascript' id='kratos-js-extra'> /* <![CDATA[ */ var kratos = {"site":"https:\/\/shluqu.cn"}; /* ]]> */ </script> <script type='text/javascript' src='https://shluqu.cn/wp-content/themes/shluqu/js/kratos.js?ver=2.8' id='kratos-js'></script> <script type='text/javascript' id='post-ratings-js-extra'> /* <![CDATA[ */ var post_ratings = {"ajaxURL":"https:\/\/shluqu.cn\/wp-admin\/admin-ajax.php","nonce":"a45a660c91","path":"http:\/\/shluqu.cn\/wp-content\/plugins\/post-ratings\/assets\/images\/","number":"5"}; /* ]]> */ </script> <script type='text/javascript' src='http://shluqu.cn/wp-content/plugins/post-ratings/js/post-ratings.js?ver=3.0' id='post-ratings-js'></script> <script type='text/javascript' src='http://shluqu.cn/wp-content/plugins/post-ratings/assets/jquery.raty.js?ver=3.0' id='post-ratings-raty-js'></script> <script type='text/javascript' id='ivory-search-scripts-js-extra'> /* <![CDATA[ */ var IvorySearchVars = {"is_analytics_enabled":"1"}; /* ]]> */ </script> <script type='text/javascript' src='https://shluqu.cn/wp-content/plugins/add-search-to-menu/public/js/ivory-search.min.js?ver=4.6.5' id='ivory-search-scripts-js'></script> <script type='text/javascript' src='https://shluqu.cn/wp-includes/js/wp-embed.min.js?ver=5.7.2' id='wp-embed-js'></script> <script type='text/javascript' id='ivory-ajax-search-scripts-js-extra'> /* <![CDATA[ */ var IvoryAjaxVars = {"ajaxurl":"https:\/\/shluqu.cn\/wp-admin\/admin-ajax.php","ajax_nonce":"1fceef733a"}; /* ]]> */ </script> <script type='text/javascript' src='https://shluqu.cn/wp-content/plugins/add-search-to-menu/public/js/ivory-ajax-search.min.js?ver=4.6.5' id='ivory-ajax-search-scripts-js'></script> </body> </html> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->