XPath 在 XPath Validator 工具中使用:如何验证你的 XPath 表达式并避免常见错误?

XPath(XML Path Language)是一种用于在 XML 和 HTML 文档中导航和查询节点的强大查询语言。在 Web 抓取、数据提取、自动化测试和文档处理等领域中,XPath 表达式是不可或缺的工具。然而,编写 XPath 表达式时容易出现语法错误、逻辑问题或性能瓶颈,导致查询失败或效率低下。XPath Validator 工具(如浏览器开发者工具、在线验证器或 IDE 插件)可以帮助开发者快速验证表达式、调试问题并优化性能。本文将详细指导如何使用 XPath Validator 工具验证 XPath 表达式,并通过完整示例避免常见错误。文章结构清晰,从基础概念入手,逐步深入到高级技巧,确保读者能够轻松上手并解决实际问题。
1. XPath 基础概念回顾:理解表达式的结构
在使用 XPath Validator 工具之前,首先需要掌握 XPath 的基本语法。XPath 表达式由路径、轴(axis)、节点测试(node test)和谓词(predicate)组成,用于定位文档中的特定节点。XPath 支持绝对路径(从根节点开始)和相对路径(从当前节点开始),并使用运算符如
=
、
and
、
or
进行条件过滤。
1.1 XPath 表达式的核心组件
轴(Axis)
:定义节点之间的关系,如
child::
(子节点)、
parent::
(父节点)、
ancestor::
(祖先节点)。
节点测试(Node Test)
:指定节点类型,如
*
(所有节点)、
element()
(元素节点)、
text()
(文本节点)。
谓词(Predicate)
:用方括号
[]
包裹的条件,用于过滤节点,如
[1]
(第一个节点)或
[@class=’header’]
(属性为 ‘header’ 的节点)。
函数
:内置函数如
contains()
(包含文本)、
starts-with()
(以文本开头)、
count()
(计数节点)。
1.2 示例:一个简单的 XML 文档
假设我们有一个 XML 文档
books.xml
,内容如下:
Learning XPath
John Doe 29.99


Advanced XML
Jane Smith 39.99


Web Scraping with XPath
John Doe 24.99
一个简单的 XPath 表达式
//book[author=’John Doe’]/title
会返回所有作者为 “John Doe” 的书的标题节点。在 Validator 工具中输入此表达式,应输出两个
<br /> 节点:”Learning XPath” 和 “Web Scraping with XPath”。<br /> 通过理解这些基础,你可以避免语法错误,如忘记闭合方括号或误用轴。接下来,我们将介绍如何在 Validator 工具中验证这些表达式。<br /> 2. XPath Validator 工具介绍:选择合适的工具并使用<br /> XPath Validator 工具是验证和调试 XPath 表达式的平台,能实时显示匹配结果、错误提示和性能指标。常见工具包括浏览器内置功能、在线验证器和 IDE 扩展。选择工具时,考虑文档类型(XML/HTML)、调试需求和环境(离线/在线)。<br /> 2.1 常见 XPath Validator 工具<br /> 浏览器开发者工具(Chrome/Firefox)<br /> :内置 XPath 支持,适合 HTML 验证。按 F12 打开控制台,使用<br /> $x(“your-xpath”)<br /> 在 JavaScript 环境中测试。<br /> 在线工具<br /> :如 XMLGrid.net 的 XPath Tester 或 FreeFormatter.com 的 XPath Validator,支持直接粘贴 XML/HTML 和表达式。<br /> IDE 插件<br /> :VS Code 的 “XPath Notebook” 或 Eclipse 的 “XPath Builder”,提供语法高亮和自动补全。<br /> 命令行工具<br /> :如<br /> xmllint<br /> (Linux/Mac),用于 XML 验证。<br /> 2.2 在浏览器开发者工具中使用 XPath Validator 的步骤<br /> 浏览器工具是最便捷的选择,以下是详细步骤(以 Chrome 为例):<br /> 准备文档<br /> :打开一个包含 XML/HTML 的网页或本地文件。例如,使用上述<br /> books.xml<br /> 的 HTML 版本:<br /> <!DOCTYPE html><br /> <html><br /> <body> <library> <book id="1"><br /> <title>Learning XPath
John Doe 29.99


打开开发者工具
:右键页面 -> “检查”(Inspect),或按 F12。切换到 “Console” 标签。
输入 XPath 表达式
:在控制台输入
$x(“your-xpath”)
并按 Enter。例如:
$x(“//book[author=’John Doe’]/title”)
输出:一个数组,包含匹配的 DOM 节点。如果无匹配,返回空数组。
错误提示:如果语法错误,如缺少引号,会抛出 “Invalid XPath” 异常。
查看结果
:右键输出节点 -> “Reveal in Elements” 查看在文档中的位置。或使用
console.log($x(“//book[author=’John Doe’]/title”)[0].textContent)
输出文本内容。
调试多结果
:如果表达式匹配多个节点,使用
forEach
遍历:
$x(“//book[author=’John Doe’]/title”).forEach(node => console.log(node.textContent));
预期输出:
Learning XPath
Web Scraping with XPath
2.3 在线工具的使用示例
以 XMLGrid.net 为例:
访问网站,粘贴 XML 文档。
在 XPath 输入框输入表达式,如
//book[@id=’2′]/price
。
点击 “Evaluate”,工具会高亮匹配节点并显示值 “39.99”。
如果表达式无效,工具会显示错误如 “XPath parse error: unexpected token”。
通过这些工具,你可以快速迭代验证,避免手动解析文档的麻烦。
3. 如何验证 XPath 表达式:逐步指南
验证 XPath 表达式不仅仅是检查语法,还包括确认匹配结果是否符合预期。以下是系统化的验证流程,确保表达式可靠。
3.1 步骤 1:语法验证
检查基本结构
:确保路径正确、引号匹配、括号闭合。
工具提示
:在 Validator 中,语法错误会立即显示。例如,输入
//book[author=John Doe]
(缺少引号)会报错 “Invalid literal”。
修正示例
:正确为
//book[author=’John Doe’]
。
3.2 步骤 2:逻辑验证
测试匹配数量
:使用
count()
函数验证节点数。例如,在控制台输入:
$x(“count(//book[author=’John Doe’])”)
预期:返回 2(匹配两个 book 节点)。
检查具体值
:提取文本或属性。例如:
$x(“//book[1]/title/text()”)[0].nodeValue // 输出 “Learning XPath”
3.3 步骤 3:性能验证
大型文档测试
:在包含 1000+ 节点的文档中运行表达式,观察响应时间。如果超过 1 秒,优化路径(如避免
//
通配符)。
工具辅助
:一些工具如 XPath Debugger(Firefox 插件)显示执行时间。
3.4 完整验证示例:从错误到正确
假设我们想提取所有价格大于 30 的书的标题,但初始表达式有误。
错误表达式
:
//book[price > 30]title
问题:缺少
/
,且
title
未正确路径化。
Validator 输出:语法错误 “Unexpected token”。
修正步骤
:
添加路径:
//book[price > 30]/title
。
验证:在浏览器控制台运行:
$x(“//book[price > 30]/title”).forEach(node => console.log(node.textContent));
输出: “Advanced XML”(因为只有 book id=2 的价格 39.99 > 30)。
优化:如果文档有命名空间,添加
local-name()
:
//*[local-name()=’book’][price > 30]/title
。
通过这个流程,你可以确保表达式 100% 准确。
4. 避免常见错误:陷阱与解决方案
XPath 表达式常见错误源于语法疏忽、上下文误解或性能问题。以下是高频错误,配以完整示例和修复。
4.1 错误 1:语法错误(引号、括号、路径)
问题
:忘记闭合括号或引号,导致解析失败。
示例
:
//book[author=’John Doe
(缺少结束引号和括号)。
Validator 反馈
: “XPath parse error: unterminated string literal”。
解决方案
:始终使用成对符号。使用工具的自动补全功能。修复后:
//book[author=’John Doe’]
。
避免技巧
:在 IDE 中编写,启用语法检查。
4.2 错误 2:上下文节点误解
问题
:在相对路径中使用绝对路径,或混淆当前节点。
示例
:假设当前节点是 ,想找子

的
<br /> 。错误表达式:<br /> /library/book/title<br /> (绝对路径,从根开始,可能不匹配)。<br /> Validator 反馈<br /> :无匹配节点。<br /> 解决方案<br /> :使用相对路径<br /> ./book/title<br /> 或<br /> book/title<br /> 。在控制台测试:<br /> // 先定位 library<br /> $x(“//library”)[0].evaluate(“book/title”, $x(“//library”)[0], null, XPathResult.ANY_TYPE, null);<br /> 避免技巧<br /> :理解 XPath 的上下文:表达式从当前节点或根节点开始。使用<br /> .<br /> 表示当前节点,如<br /> ./author<br /> 。<br /> 4.3 错误 3:属性与元素混淆<br /> 问题<br /> :用<br /> @<br /> 访问元素,或反之。<br /> 示例<br /> :想获取 id=1 的 book 的 title,但写成<br /> //book[@id=1]title<br /> (缺少<br /> /<br /> 和<br /> []<br /> 闭合)。<br /> Validator 反馈<br /> : “Invalid predicate”。<br /> 解决方案<br /> :<br /> //book[@id=’1′]/title<br /> 。注意:属性值用引号,即使数字。<br /> 避免技巧<br /> :记住<br /> @<br /> 只用于属性,元素直接写名称。测试时,用<br /> $x(“//book/@id”)<br /> 验证属性。<br /> 4.4 错误 4:轴使用不当<br /> 问题<br /> :忽略轴导致路径错误,如想找父节点却用子轴。<br /> 示例<br /> :从<br /> <title><br /> 找父<br /> <book><br /> 的 id。错误:<br /> ../book/@id<br /> (<br /> ..<br /> 是父轴,但 book 是兄弟?)。<br /> 正确<br /> :<br /> ../@id<br /> (直接父 book 的 id)。<br /> Validator 测试<br /> :<br /> $x(“//title[1]”)[0].evaluate(“../@id”, $x(“//title[1]”)[0], null, XPathResult.STRING_TYPE, null).stringValue;<br /> 输出: “1”。<br /> 避免技巧<br /> :列出轴关系:<br /> ancestor::<br /> 、<br /> following-sibling::<br /> 等。用 Validator 可视化节点树。<br /> 4.5 错误 5:性能问题(过度使用 //)<br /> 问题<br /> :<br /> //<br /> 从任意深度搜索,慢于指定路径。<br /> 示例<br /> :<br /> //title<br /> 在大型文档中扫描所有节点。<br /> 解决方案<br /> :指定路径如<br /> /library/book/title<br /> ,速度提升 10x+。<br /> 避免技巧<br /> :在 Validator 中比较时间,或用<br /> count()<br /> 检查效率。<br /> 4.6 错误 6:命名空间忽略<br /> 问题<br /> :XML 有命名空间时,简单路径失效。<br /> 示例<br /> :<br /> <ns:book xmlns:ns="http://example.com"><br /> ,表达式<br /> //book<br /> 无匹配。<br /> 解决方案<br /> :<br /> //*[local-name()=’book’]<br /> 或注册命名空间(在工具中设置)。<br /> 避免技巧<br /> :检查文档源,使用工具的命名空间选项。<br /> 5. 高级技巧:优化与调试复杂表达式<br /> 对于复杂场景,如嵌套条件或函数组合,使用 Validator 的高级功能。<br /> 5.1 使用函数组合<br /> 示例<br /> :找价格平均值大于 30 的作者。表达式:<br /> //book[price > 30]/author<br /> 验证:用 JavaScript 在控制台计算平均值:<br /> const prices = $x(“//book/price”).map(p => parseFloat(p.textContent));<br /> const avg = prices.reduce((a,b) => a+b, 0) / prices.length;<br /> console.log(avg > 30 ? $x(“//book[price > 30]/author”).map(a => a.textContent) : “No match”);<br /> 输出:[“Jane Smith”]。<br /> 5.2 调试技巧<br /> 分步测试<br /> :将复杂表达式拆分,如先测试<br /> //book<br /> ,再加谓词。<br /> 使用工具日志<br /> :在 XPath Debugger 中,查看每个步骤的节点集。<br /> 错误恢复<br /> :如果工具崩溃,检查文档是否有效 XML(用在线 XML Validator)。<br /> 6. 结论:掌握 XPath Validator 的最佳实践<br /> 使用 XPath Validator 工具验证表达式是避免错误、提升效率的关键。通过语法检查、逻辑测试和性能优化,你可以构建可靠的查询。记住:从小表达式开始,逐步构建;始终在实际文档中测试;并利用工具的调试功能。实践这些技巧后,你将能高效处理 Web 抓取、自动化测试等任务。如果遇到特定错误,参考工具文档或社区如 Stack Overflow。继续练习,你的 XPath 技能将更上一层楼!</p> </div> <div class="wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained" style="margin-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--50)"> <div class="wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained"> <div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"> </div> <hr class="wp-block-separator has-text-color has-contrast-3-color has-alpha-channel-opacity has-contrast-3-background-color has-background is-style-wide" style="margin-bottom:var(--wp--preset--spacing--40)"/> <nav class="wp-block-group is-content-justification-space-between is-nowrap is-layout-flex wp-container-core-group-is-layout-2b923ac6 wp-block-group-is-layout-flex" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)" aria-label="Posts"> <div class="post-navigation-link-previous wp-block-post-navigation-link"><span class="wp-block-post-navigation-link__arrow-previous is-arrow-arrow" aria-hidden="true">←</span><a href="https://ziliao.tiaomu.com/111177632/" rel="prev"><span class="post-navigation-link__label">Previous: </span> <span class="post-navigation-link__title">如何有效克服媒体偏见并提升新闻报道的客观性与公正性</span></a></div> <div class="post-navigation-link-next wp-block-post-navigation-link"><a href="https://ziliao.tiaomu.com/111177634/" rel="next"><span class="post-navigation-link__label">Next: </span> <span class="post-navigation-link__title">台湾边缘生活影纪:聚焦边缘群体的真实故事</span></a><span class="wp-block-post-navigation-link__arrow-next is-arrow-arrow" aria-hidden="true">→</span></div> </nav> </div> </div> </main> <footer class="wp-block-template-part"> <div class="wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"> <div class="wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-3a88641f wp-block-columns-is-layout-flex"> <div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:30%"> <div class="wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-831b2db5 wp-block-group-is-layout-flex"> <p class="wp-block-site-title has-medium-font-size"><a href="https://ziliao.tiaomu.com" target="_self" rel="home">资料库 – 中文知识库</a></p> </div> </div> <div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:20%"> </div> <div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%"> <div class="wp-block-group is-content-justification-space-between is-layout-flex wp-container-core-group-is-layout-cf54d0a6 wp-block-group-is-layout-flex"> <div class="wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-d8dce8eb wp-block-group-is-layout-flex"> <h2 class="wp-block-heading has-medium-font-size has-body-font-family" style="font-style:normal;font-weight:600">About</h2> <div class="wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-bce0c455 wp-block-group-is-layout-flex"> <nav style="font-style:normal;font-weight:400" class="has-small-font-size is-vertical wp-block-navigation is-layout-flex wp-container-core-navigation-is-layout-bce0c455 wp-block-navigation-is-layout-flex" aria-label="About"><ul style="font-style:normal;font-weight:400" class="wp-block-navigation__container has-small-font-size is-vertical wp-block-navigation" aria-label="About"><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Team</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">History</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Careers</span></a></li></ul></nav> </div> </div> <div class="wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-d8dce8eb wp-block-group-is-layout-flex"> <h2 class="wp-block-heading has-medium-font-size has-body-font-family" style="font-style:normal;font-weight:600">Privacy</h2> <div class="wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-bce0c455 wp-block-group-is-layout-flex"> <nav style="font-style:normal;font-weight:400" class="has-small-font-size is-vertical wp-block-navigation is-layout-flex wp-container-core-navigation-is-layout-bce0c455 wp-block-navigation-is-layout-flex" aria-label="Privacy"><ul style="font-style:normal;font-weight:400" class="wp-block-navigation__container has-small-font-size is-vertical wp-block-navigation" aria-label="Privacy"><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Privacy Policy</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Terms and Conditions</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Contact Us</span></a></li></ul></nav> </div> </div> <div class="wp-block-group is-vertical is-content-justification-stretch is-layout-flex wp-container-core-group-is-layout-d8dce8eb wp-block-group-is-layout-flex"> <h2 class="wp-block-heading has-medium-font-size has-body-font-family" style="font-style:normal;font-weight:600">Social</h2> <div class="wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-bce0c455 wp-block-group-is-layout-flex"> <nav style="font-style:normal;font-weight:400" class="has-small-font-size is-vertical wp-block-navigation is-layout-flex wp-container-core-navigation-is-layout-bce0c455 wp-block-navigation-is-layout-flex" aria-label="Social Media"><ul style="font-style:normal;font-weight:400" class="wp-block-navigation__container has-small-font-size is-vertical wp-block-navigation" aria-label="Social Media"><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Facebook</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Instagram</span></a></li><li class="wp-block-navigation-item wp-block-navigation-link"><a class="wp-block-navigation-item__content" href="#"><span class="wp-block-navigation-item__label">Twitter/X</span></a></li></ul></nav> </div> </div> </div> </div> </div> <div class="wp-block-group alignwide is-layout-flow wp-block-group-is-layout-flow" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:0"> <p class="has-contrast-2-color has-text-color has-link-color has-small-font-size wp-elements-1 wp-block-paragraph"> Designed with <a href="https://wordpress.org" rel="nofollow">WordPress</a> </p> </div> </div> </footer> </div> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/twentytwentyfour/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script data-wp-router-options="{"loadOnClientNavigation":true}" fetchpriority="low" id="@wordpress/block-library/navigation/view-js-module" src="https://ziliao.tiaomu.com/wp-includes/js/dist/script-modules/block-library/navigation/view.min.js?ver=1bf28ded04f9f188bdcb" type="module"></script> <script id="wp-emoji-settings" type="application/json"> {"baseUrl":"https://s.w.org/images/core/emoji/17.0.2/72x72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/17.0.2/svg/","svgExt":".svg","source":{"concatemoji":"https://ziliao.tiaomu.com/wp-includes/js/wp-emoji-release.min.js?ver=7.1.5"}} </script> <script type="module"> /*! This file is auto-generated */ var e="script#wp-emoji-settings",t=document.querySelector(e);if(!(t instanceof HTMLScriptElement))throw new Error("Element missing: "+e);const r=JSON.parse(t.text),s=(window._wpemojiSettings=r,"wpEmojiSettingsSupports"),o=["flag","emoji"];function i(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(s,JSON.stringify(t))}catch(e){}}function c(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0);const r=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);return t.every((e,t)=>e===r[t])}function p(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var n=e.getImageData(16,16,1,1);for(let e=0;e<n.data.length;e++)if(0!==n.data[e])return!1;return!0}function u(e,t,n,r){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\udde8\ud83c\uddf6","\ud83c\udde8\u200b\ud83c\uddf6")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!r(e,"\ud83e\u1fac8")}return!1}function f(e,t,n,r){let a;const s=(a="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):document.createElement("canvas")).getContext("2d",{willReadFrequently:!0}),o=(s.textBaseline="top",s.font="600 32px Arial",{});return e.forEach(e=>{o[e]=t(s,e,n,r)}),o}function a(e){var t=document.createElement("script");t.src=e,t.defer=!0,document.head.appendChild(t)}r.supports={everything:!0,everythingExceptFlag:!0},new Promise(t=>{let n=function(){try{var e=JSON.parse(sessionStorage.getItem(s));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(o),u.toString(),c.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"});const a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=e=>{i(n=e.data),a.terminate(),t(n)})}catch(e){}i(n=f(o,u,c,p))}t(n)}).then(e=>{for(const n in e)r.supports[n]=e[n],r.supports.everything=r.supports.everything&&r.supports[n],"flag"!==n&&(r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&r.supports[n]);var t;r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&!r.supports.flag,r.supports.everything||((t=r.source||{}).concatemoji?a(t.concatemoji):t.wpemoji&&t.twemoji&&(a(t.twemoji),a(t.wpemoji)))}); //# sourceURL=https://ziliao.tiaomu.com/wp-includes/js/wp-emoji-loader.min.js </script> <noscript><link rel="stylesheet" href="https://ziliao.tiaomu.com/wp-content/themes/abiz/assets/css/all.min.css?ver=6.5.1"></noscript> </body> </html>