首页 文章 精选 留言 我的

精选列表

搜索[javascript引擎],共10000篇文章
优秀的个人博客,低调大师

揭秘阿里小蜜:基于检索模型和生成模型相结合的聊天引擎 | PaperDaily #25

面向 open domain 的聊天机器人无论在学术界还是工业界都是个有挑战的课题,目前有两种典型的方法:一是基于检索的模型,二是基于 Seq2Seq 的生成式模型。前者回复答案可控但无法处理长尾问题,后者则难以保证一致性和合理性。 本期推荐的论文笔记来自 PaperWeekly 社区用户 @britin。本文结合检索模型和生成模型各自的优势,提出了一种新的融合模型 — AliMe Chat。 阿里小蜜首先采用检索模型从 QA 知识库中找出候选答案集合,然后利用带注意力的 Seq2Seq 模型对候选答案进行排序,如果第一候选的得分超过某个阈值,则作为最终答案输出,否则利用生成模型生成答案。 如果你对本文工作感兴趣,点击底部的阅读原文即可查看原论文。 关于作者:Britin,中科院物理学硕士,研究方向为自然语言处理和计算机视觉。 ■ 论文 | AliMe Chat: A Sequence to Sequence and Rerank based Chatbot Engine ■ 链接 | https://www.paperweekly.site/papers/1302 ■ 作者 | britin 论文动机 目前商用的 Chatbot 正在大量兴起,这种可以自然语言对话的方式来帮助用户解答问题比传统死板的用户界面要更友好。通常 Chatbot 包括两个部分:IR 模块和生成模块。针对用户的问题,IR 模块从 QA 知识库中检索到对应的答案,生成模块再用预训练好的 Seq2Seq 模型生成最终的答案。 但是已有的系统面临的问题是,对于一些长问句或复杂问句往往无法在 QA 知识库中检索到匹配的条目,并且生成模块也经常生成不匹配或无意义的答案。 本文给出的方法将 IR 和生成模块聚合在一起,用一个 Seq2Seq 模型来对搜索结果做评估,从而达到优化的效果。 模型介绍 整个方案如图所示: 首先利用 IR 模型从知识库中检索到 k 个候选 QA 对,再利用 rerank 模型的打分机制计算出每个候选答案和问题的匹配程度。如果得分最高的那个大于预设好的阈值,就将其当作答案,如果小于阈值,就用生成模型生成答案。 整个系统是从单词层面上去分析的。 1. QA知识库 本文从在线的真人用户服务 log 里提取问答对作为 QA 知识库。过滤掉不包含相关关键词的 QA,最后得到 9164834 个问答对。 2. IR模块 利用倒排索引的方法将每个单词隐射到包含这个单词的一组问句中,并且对这些单词的同义词也做了索引,然后利用 BM25 算法来计算搜索到的问句和输入问句的相似度,取最相似问句的答案。 3. 生成模型 生成模型是一个 attentive seq2seq 的结构,如图所示: 采用了一个 GRU,由 question 生成 answer,计算生成单词的概率: 其中加了 context 向量,他是由图中的 α 求得的,α 表示的是当前步的输入单词,和上一步的生成单词之间的匹配度,用了一个 alignment 模型计算。 要注意,对于各个 QA 长度不等的情况,采用了 bucketing 和 padding 机制。另外用了 softmax 来随机采样词汇表中的单词,而不使用整个词汇表,从而加速了训练过程。还是用了 beam search decoder,每次维护 top-k 个输出,来取代一次一个输出的贪心搜索。 4. rerank 模块 使用的模型和上面是一样的,根据输入问题来为候选答案打分,使用平均概率作为评分函数: 实验结果 本文对结果做了详细的评估,首先评估了 rerank 模块平均概率的结果。然后分别对 IR,生成,IR+rerank,IR+rerank+ 生成这些不同组合的系统做了性能评测。并对该系统和 baseline 的 Chatbot 做了在线 A/B 测试。最后比较了这个系统和已经上市的 Chatbot 之间的差别。 不同 rerank 模型的效果: 不同模块组合的结果: 和 baseline 对比的结果: 文章评价 本文给出了一种 attentive Seq2Seq 的模型来结合 IR 和生成模块,从而对原结果进行 rerank 优化。阿里已经把这个投入了阿里小蜜的商用。 总的系统还是比较简单的,符合商用的需求。但由于函数设计过于简单,不排除是靠数据堆起来的系统,毕竟阿里有大量的真实用户数据,所以算法价值层面比较一般,没有合适的数据恐怕很难达到预期的效果。 原文发布时间为:2017-12-13 本文作者:Britin 本文来自云栖社区合作伙伴“PaperWeekly”,了解相关信息可以关注“PaperWeekly”微信公众号

优秀的个人博客,低调大师

浪潮AS8000-M2存储虚拟化整合方案 打造电子政务云引擎

导语:“互联网+”的趋势下,政府职能加速向服务型转变,电子政务云数据中心是办公事务处理、辅助决策、信息管理和资源共享的政务协同基础平台,需要提供强大的异构兼容性和资源扩展性。浪潮提出以AS8000-M2为核心的虚拟化整合方案,可解决政务信息化发展中存在的数据“孤岛”问题,建立功能全面、技术先进、简单易用的统一数据资源池,以适应电子政务服务的不断调整和变化,加速政府行政管理体制改革和政务流程再造。 由“信息孤岛”到共享互动,如何构建电子政务云数据中心 目前,我国电子政务处在“跨越式”发展阶段,政务需求越来越清晰化,办公自动化程度要求越来越高,政府内部及部门间协作的需求也更加旺盛,电子政务云数据中心的推广以及深层次政务应用的开发越来越受到各级机关的重视。 电子政务云数据中心建设需满足各级政务部门办公、管理、协调、监督和决策的需要,通过构建统一的信息资源平台,实现业务协同化办公,支撑各级党委、政府、人大、政协、检察院、法院履行核心职能,提高政府部门政务服务水平和公共服务的能力。 丰富的电子政务应用需要统一数据平台的支撑 然而,在电子政务数据中心的建设过程中,面临着种种难题及需求: 首先,各部门之间“信息孤岛”现象严重,重复建设、互不连通、各自为政、决策重叠、潜在价值没有充分发挥等问题的存在,使得部门之间数据共享困难,难以形成高效统一的电子政务平台。这就要求作为数据中心基础设施的存储设备能够全面支持虚拟化业务,成为数据中心可随需分配、可灵活调度的资源平台,实现数据互联互通。 其次,政府事务对信息安全要求极高,存储设备必须高可靠、统一管理数据,杜绝因人为误操作、硬件故障、自然灾害等问题造成数据丢失,确保数据安全可靠。同时,这也是保障业务连续性的关键所在。 再次,面对业务发展带来的数据量增长,存储架构需要能够灵活扩展、平滑升级容量,同时兼容异构存储,保持存储设备的高利用率,以应对将来数据中心的扩容需求。 最后,在投资比较富裕的情况下,可构建数据容灾系统,进一步提升电子政务系统的可靠性。 AS8000-M2作为存储虚拟化整合的核心,助电子政务实现数据共享 在电子政务数据中心的建设中,前端往往涉及虚拟化集群、普通业务服务器、数据服务器等等。针对前端业务的详细分析,采用服务器虚拟化应用之后,虚机的操作系统文件、应用文件及应用数据全部保存在后端的共享存储中,对存储系统的压力空前巨大,为保证业务应用的正常运行,存储端需做到24*365持续不间断运行,存储高可用机制是必不可少的环节。 浪潮建议后端使用虚拟化存储管理的两套镜像存储,任意一套发生故障对前端业务都不造成影响。同时,虚拟化网关本身也是双节点模式存在,不存在单点故障。 浪潮虚拟化整合方案架构拓补图 这样电子政务云数据中心建设中的面临的几个难题,可由浪潮AS8000-M2一一击破: 首先,AS8000-M2具备异构虚拟化功能,可整合不同品牌、不同厂商的存储设备,实现数据跨存储设备的流通和共享,构建统一的数据共享资源池。 同时,浪潮AS8000-M2拥有自动精简配置等高级功能功能,系统可以向应用服务器提供虚拟分配的磁盘资源,同时,服务器按需从存储池内获取及释放磁盘资源,可有效避免存储空间分配不合理导致的资源浪费问题。 其次,AS8000-M2可为电子政务云数据中心提供安全可靠的保障,全冗余架构、全模块化设计,无单点故障,保障系统架构中任何一台设备出现意外故障,都不会影响政务服务的正常运行;其丰富的控制功能和多种连接方式,可实现多路径故障无缝自动切换。AS8000-M2拥有统一的管理界面,可实时监控设备运行状态,构建全方位的故障诊断机制,既降低了管理复杂度又提升了监管效率。 再次,AS8000-M2支持业界90%以上标准FC接口的存储产品接入,具备良好的可扩展性。基于透明管理技术,AS8000-M2可根据电子政务数据中心将来的实际业务压力轻松扩展容量和性能。 另外,AS8000支持基于IP、FC的同步异步数据复制,在异构存储间建立起本地或远程的数据容灾功能,实现数据级、应用级容灾方案;支持多站点间的数据同步异步传输,建立大规模的全局数据容灾系统,实现异地数据保护。 浪潮AS8000 全共享、高可靠的数据平台,助力服务型政务转型 按照“统一规划、统一网络;突出重点、分步建设;安全保密、务求实效”的原则,通过部署浪潮虚拟化存储解决方案,可将电子政务云数据中心原有存储整合利用、统一管理;提高整体设备的利用率,同时,减少设备管理的复杂程度;通过多台AS8000-M2,构建数据容灾中心,可进一步提升电子政务服务的可靠性。 浪潮以AS8000-M2为核心的存储虚拟化整合方案,可为政务云数据中心未来5-10年的政府服务需求,给政府政务办公提供跨部门、跨区域的数据共享、资源互通的智能化的数据平台,提高政府服务效能,加速服务型政府转型。 作者:佚名 来源:51CTO

优秀的个人博客,低调大师

JavaScript 事件循环中的微任务与渲染时机:一次真实页面卡顿的排查记录

页面在持续处理 WebSocket 推送数据时出现间歇性卡顿,用 Performance 面板录制后发现,长任务被拆成了大量微任务,而关键帧渲染被推迟到了这批微任务全部清空之后。这个问题在实时数据看板、聊天界面、协作编辑这类高频更新的场景里很容易碰到:数据到达速度略高于渲染速度,代码里又习惯性用 Promise 做批处理,结果微任务队列越积越长,浏览器始终找不到机会执行样式计算和绘制。文章从一次具体的卡顿排查出发,先梳理事件循环里宏任务、微任务和渲染步骤的实际执行顺序,再讨论 Promise 链和 queueMicrotask 在批处理中的行为差异,随后给出一套让渲染有机会插入执行的可落地写法,最后补充 MutationObserver 和 requestAnimationFrame 在这类场景中的取舍。

优秀的个人博客,低调大师

别再混淆了:JavaScript 中 e.target 与 e.currentTarget 的真实区别与实战踩坑

写事件处理函数时,我见过太多人在 `click` 回调里随手用 `e.target` 去改样式或取数据,结果在嵌套结构里翻车。比如一个卡片列表,点击内部的删除按钮,却把整个卡片的背景色改了;或者用事件委托监听 `ul`,点击 `li` 里的 `span` 时拿到的 `target` 是 `span`,而你需要的是那个 `li`。这类问题的根源就是没分清 `e.target` 和 `e.currentTarget`。`target` 始终指向触发事件的原始元素,也就是你实际点中的那个节点;`currentTarget` 则指向当前绑定监听器的那个元素。在事件冒泡过程中,`target` 不会变,但 `currentTarget` 会随着事件流经过的每个监听元素而改变。这篇文章从 DOM 事件模型讲起,结合事件委托、动态元素、React 合成事件等场景,把这两个属性的行为差异和常见误用一次说清楚。 ## 从一次点击说起 假设有下面这样一段结构: ```html 标题 删除 ``` 给 `.card` 绑一个点击事件: ```js const card = document.getElementById('card'); card.addEventListener('click', function (e) { console.log('target:', e.target); console.log('currentTarget:', e.currentTarget); }); ``` 点击按钮时,控制台输出: - `target` 是 `删除` - `currentTarget` 是 `...` 点击标题时,`target` 变成 ``,`currentTarget` 还是那个 `div`。点击卡片空白处,`target` 和 `currentTarget` 才相同,都是 `div`。这个差异就是所有坑的起点。 ## 为什么 currentTarget 在异步里会变成 null 很多人写过这样的代码然后发现报错: ```js button.addEventListener('click', function (e) { setTimeout(() => { console.log(e.currentTarget); // null }, 100); }); ``` 原因是 `currentTarget` 只在事件处理函数的执行期间有值。事件派发结束后,浏览器会把 `currentTarget` 重置为 `null`。而 `target` 是真实 DOM 节点引用,不会因为事件结束而失效。所以如果你需要在异步回调里访问绑定元素,要么提前把 `e.currentTarget` 存进变量,要么直接用 `this`(非箭头函数下)或者闭包引用外部元素。 ```js button.addEventListener('click', function (e) { const btn = e.currentTarget; setTimeout(() => { btn.disabled = true; }, 500); }); ``` ## 事件委托里该用哪个 事件委托是 `currentTarget` 和 `target` 配合最典型的地方。给父容器绑定一个监听器,通过 `target` 判断实际点的是哪个子元素: ```js const list = document.getElementById('list'); list.addEventListener('click', function (e) { const item = e.target.closest('.item'); if (!item) return; if (e.target.matches('.remove-btn')) { item.remove(); } }); ``` 这里 `e.target` 可能是 `.remove-btn`,也可能是按钮里的图标 ``,所以用 `closest` 往上找最近的 `.item` 才稳妥。`e.currentTarget` 在这里始终是 `#list`,它代表委托的容器,不是被点击的业务元素。如果误把 `e.currentTarget` 当成被点击项,删除逻辑就会把整个列表删掉。 ## React 里的合成事件差异 React 17 之前,合成事件被挂载到 `document` 上,`e.currentTarget` 在事件回调里依然指向绑定元素,但 React 内部对事件对象做了池化,异步访问会出问题。React 17 之后事件挂载到 root 容器,池化也移除了,但 `currentTarget` 的语义没变:它指向当前正在执行回调的那个元素。 ```jsx function App() { const handleClick = (e) => { console.log(e.target); // 实际点击的 DOM console.log(e.currentTarget); // 绑定 onClick 的那个元素 }; return ( 点我 ); } ``` 在 React 中同样不要依赖异步里的 `e.currentTarget`,它在事件回调结束后也会被置空。需要的话先解构: ```jsx const handleClick = (e) => { const el = e.currentTarget; requestAnimationFrame(() => { el.classList.add('active'); }); }; ``` ## 一个容易忽略的坑:disabled 按钮不触发事件 当按钮被 `disabled` 时,点击它不会触发父元素的 click 事件,因为 disabled 表单控件不派发鼠标事件。这时候用事件委托去捕获删除按钮会失效。常见做法是给按钮套一层 ``,或者用 `pointer-events` 配合 `aria-disabled` 模拟禁用状态。这和 `target`/`currentTarget` 本身无关,但经常一起出现,排查时容易绕远路。 ## 该用哪个的判断标准 如果你关心的是“用户到底点中了什么”,用 `e.target`,配合 `closest`、`matches` 做过滤。如果你关心的是“哪个元素上的监听器被触发了”,用 `e.currentTarget`。在事件委托的场景里,`currentTarget` 是委托容器,`target` 是实际触发点。在直接绑定的场景里,二者通常相同,除非内部还有子元素。 写业务代码时,养成一个习惯:在回调开头先把需要的引用解构出来。 ```js function onClick(e) { const { target, currentTarget } = e; // 后续异步逻辑 safely 使用 target / currentTarget } ``` 这样既避免了异步置空的问题,也让代码意图更清晰——谁是被点的,谁是绑事件的。 推荐查看天气:https://www.0dtq.com/linfenyicheng/15tian.html 推荐查看天气:https://www.0dtq.com/linfenyicheng/40tian.html 推荐查看天气:https://www.0dtq.com/xiangfen/ 推荐查看天气:https://www.0dtq.com/xiangfen/zuotian.html 推荐查看天气:https://www.0dtq.com/xiangfen/7tian.html 推荐查看天气:https://www.0dtq.com/xiangfen/10tian.html 推荐查看天气:https://www.0dtq.com/xiangfen/15tian.html 推荐查看天气:https://www.0dtq.com/xiangfen/40tian.html 推荐查看天气:https://www.0dtq.com/hongdong/ 推荐查看天气:https://www.0dtq.com/hongdong/zuotian.html 推荐查看天气:https://www.0dtq.com/hongdong/7tian.html 推荐查看天气:https://www.0dtq.com/hongdong/10tian.html 推荐查看天气:https://www.0dtq.com/hongdong/15tian.html 推荐查看天气:https://www.0dtq.com/hongdong/40tian.html 推荐查看天气:https://www.0dtq.com/guxian/ 推荐查看天气:https://www.0dtq.com/guxian/zuotian.html 推荐查看天气:https://www.0dtq.com/guxian/7tian.html 推荐查看天气:https://www.0dtq.com/guxian/10tian.html 推荐查看天气:https://www.0dtq.com/guxian/15tian.html 推荐查看天气:https://www.0dtq.com/guxian/40tian.html 推荐查看天气:https://www.0dtq.com/anze/ 推荐查看天气:https://www.0dtq.com/anze/zuotian.html 推荐查看天气:https://www.0dtq.com/anze/7tian.html 推荐查看天气:https://www.0dtq.com/anze/10tian.html 推荐查看天气:https://www.0dtq.com/anze/15tian.html 推荐查看天气:https://www.0dtq.com/anze/40tian.html 推荐查看天气:https://www.0dtq.com/linfenfushan/ 推荐查看天气:https://www.0dtq.com/linfenfushan/zuotian.html 推荐查看天气:https://www.0dtq.com/linfenfushan/7tian.html 推荐查看天气:https://www.0dtq.com/linfenfushan/10tian.html 推荐查看天气:https://www.0dtq.com/linfenfushan/15tian.html 推荐查看天气:https://www.0dtq.com/linfenfushan/40tian.html 推荐查看天气:https://www.0dtq.com/linfenjixian/ 推荐查看天气:https://www.0dtq.com/linfenjixian/zuotian.html 推荐查看天气:https://www.0dtq.com/linfenjixian/7tian.html 推荐查看天气:https://www.0dtq.com/linfenjixian/10tian.html 推荐查看天气:https://www.0dtq.com/linfenjixian/15tian.html 推荐查看天气:https://www.0dtq.com/linfenjixian/40tian.html 推荐查看天气:https://www.0dtq.com/xiangning/ 推荐查看天气:https://www.0dtq.com/xiangning/zuotian.html 推荐查看天气:https://www.0dtq.com/xiangning/7tian.html 推荐查看天气:https://www.0dtq.com/xiangning/10tian.html 推荐查看天气:https://www.0dtq.com/xiangning/15tian.html 推荐查看天气:https://www.0dtq.com/xiangning/40tian.html 推荐查看天气:https://www.0dtq.com/daning/ 推荐查看天气:https://www.0dtq.com/daning/zuotian.html 推荐查看天气:https://www.0dtq.com/daning/7tian.html 推荐查看天气:https://www.0dtq.com/daning/10tian.html 推荐查看天气:https://www.0dtq.com/daning/15tian.html 推荐查看天气:https://www.0dtq.com/daning/40tian.html 推荐查看天气:https://www.0dtq.com/linfenxixian/ 推荐查看天气:https://www.0dtq.com/linfenxixian/zuotian.html 推荐查看天气:https://www.0dtq.com/linfenxixian/7tian.html 推荐查看天气:https://www.0dtq.com/linfenxixian/10tian.html 推荐查看天气:https://www.0dtq.com/linfenxixian/15tian.html 推荐查看天气:https://www.0dtq.com/linfenxixian/40tian.html 推荐查看天气:https://www.0dtq.com/yonghe/ 推荐查看天气:https://www.0dtq.com/yonghe/zuotian.html 推荐查看天气:https://www.0dtq.com/yonghe/7tian.html 推荐查看天气:https://www.0dtq.com/yonghe/10tian.html 推荐查看天气:https://www.0dtq.com/yonghe/15tian.html 推荐查看天气:https://www.0dtq.com/yonghe/40tian.html 推荐查看天气:https://www.0dtq.com/puxian/ 推荐查看天气:https://www.0dtq.com/puxian/zuotian.html 推荐查看天气:https://www.0dtq.com/puxian/7tian.html 推荐查看天气:https://www.0dtq.com/puxian/10tian.html 推荐查看天气:https://www.0dtq.com/puxian/15tian.html 推荐查看天气:https://www.0dtq.com/puxian/40tian.html 推荐查看天气:https://www.0dtq.com/fenxi/ 推荐查看天气:https://www.0dtq.com/fenxi/zuotian.html 推荐查看天气:https://www.0dtq.com/fenxi/7tian.html 推荐查看天气:https://www.0dtq.com/fenxi/10tian.html 推荐查看天气:https://www.0dtq.com/fenxi/15tian.html 推荐查看天气:https://www.0dtq.com/fenxi/40tian.html 推荐查看天气:https://www.0dtq.com/houma/ 推荐查看天气:https://www.0dtq.com/houma/zuotian.html 推荐查看天气:https://www.0dtq.com/houma/7tian.html 推荐查看天气:https://www.0dtq.com/houma/10tian.html 推荐查看天气:https://www.0dtq.com/houma/15tian.html 推荐查看天气:https://www.0dtq.com/houma/40tian.html 推荐查看天气:https://www.0dtq.com/huozhou/ 推荐查看天气:https://www.0dtq.com/huozhou/zuotian.html 推荐查看天气:https://www.0dtq.com/huozhou/7tian.html 推荐查看天气:https://www.0dtq.com/huozhou/10tian.html 推荐查看天气:https://www.0dtq.com/huozhou/15tian.html 推荐查看天气:https://www.0dtq.com/huozhou/40tian.html 推荐查看天气:https://www.0dtq.com/lvliang/ 推荐查看天气:https://www.0dtq.com/lvliang/zuotian.html 推荐查看天气:https://www.0dtq.com/lvliang/7tian.html 推荐查看天气:https://www.0dtq.com/lvliang/10tian.html 推荐查看天气:https://www.0dtq.com/lvliang/15tian.html 推荐查看天气:https://www.0dtq.com/lvliang/40tian.html 推荐查看天气:https://www.0dtq.com/lishi/ 推荐查看天气:https://www.0dtq.com/lishi/zuotian.html 推荐查看天气:https://www.0dtq.com/lishi/7tian.html 推荐查看天气:https://www.0dtq.com/lishi/10tian.html 推荐查看天气:https://www.0dtq.com/lishi/15tian.html 推荐查看天气:https://www.0dtq.com/lishi/40tian.html 推荐查看天气:https://www.0dtq.com/wenshui/ 推荐查看天气:https://www.0dtq.com/wenshui/zuotian.html 推荐查看天气:https://www.0dtq.com/wenshui/7tian.html 推荐查看天气:https://www.0dtq.com/wenshui/10tian.html 推荐查看天气:https://www.0dtq.com/wenshui/15tian.html 推荐查看天气:https://www.0dtq.com/wenshui/40tian.html 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/ 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/zuotian.html 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/7tian.html 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/10tian.html 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/15tian.html 推荐查看天气:https://www.0dtq.com/lvliangjiaocheng/40tian.html 推荐查看天气:https://www.0dtq.com/xingxian/ 推荐查看天气:https://www.0dtq.com/xingxian/zuotian.html 推荐查看天气:https://www.0dtq.com/xingxian/7tian.html 推荐查看天气:https://www.0dtq.com/xingxian/10tian.html 推荐查看天气:https://www.0dtq.com/xingxian/15tian.html 推荐查看天气:https://www.0dtq.com/xingxian/40tian.html 推荐查看天气:https://www.0dtq.com/linxian/ 推荐查看天气:https://www.0dtq.com/linxian/zuotian.html 推荐查看天气:https://www.0dtq.com/linxian/7tian.html 推荐查看天气:https://www.0dtq.com/linxian/10tian.html 推荐查看天气:https://www.0dtq.com/linxian/15tian.html 推荐查看天气:https://www.0dtq.com/linxian/40tian.html 推荐查看天气:https://www.0dtq.com/liulin/ 推荐查看天气:https://www.0dtq.com/liulin/zuotian.html 推荐查看天气:https://www.0dtq.com/liulin/7tian.html 推荐查看天气:https://www.0dtq.com/liulin/10tian.html 推荐查看天气:https://www.0dtq.com/liulin/15tian.html 推荐查看天气:https://www.0dtq.com/liulin/40tian.html 推荐查看天气:https://www.0dtq.com/shilou/ 推荐查看天气:https://www.0dtq.com/shilou/zuotian.html 推荐查看天气:https://www.0dtq.com/shilou/7tian.html 推荐查看天气:https://www.0dtq.com/shilou/10tian.html 推荐查看天气:https://www.0dtq.com/shilou/15tian.html 推荐查看天气:https://www.0dtq.com/shilou/40tian.html 推荐查看天气:https://www.0dtq.com/lanxian/ 推荐查看天气:https://www.0dtq.com/lanxian/zuotian.html 推荐查看天气:https://www.0dtq.com/lanxian/7tian.html 推荐查看天气:https://www.0dtq.com/lanxian/10tian.html 推荐查看天气:https://www.0dtq.com/lanxian/15tian.html 推荐查看天气:https://www.0dtq.com/lanxian/40tian.html 推荐查看天气:https://www.0dtq.com/fangshan/ 推荐查看天气:https://www.0dtq.com/fangshan/zuotian.html 推荐查看天气:https://www.0dtq.com/fangshan/7tian.html 推荐查看天气:https://www.0dtq.com/fangshan/10tian.html 推荐查看天气:https://www.0dtq.com/fangshan/15tian.html 推荐查看天气:https://www.0dtq.com/fangshan/40tian.html 推荐查看天气:https://www.0dtq.com/zhongyang/ 推荐查看天气:https://www.0dtq.com/zhongyang/zuotian.html 推荐查看天气:https://www.0dtq.com/zhongyang/7tian.html 推荐查看天气:https://www.0dtq.com/zhongyang/10tian.html 推荐查看天气:https://www.0dtq.com/zhongyang/15tian.html 推荐查看天气:https://www.0dtq.com/zhongyang/40tian.html 推荐查看天气:https://www.0dtq.com/jiaokou/ 推荐查看天气:https://www.0dtq.com/jiaokou/zuotian.html 推荐查看天气:https://www.0dtq.com/jiaokou/7tian.html 推荐查看天气:https://www.0dtq.com/jiaokou/10tian.html 推荐查看天气:https://www.0dtq.com/jiaokou/15tian.html 推荐查看天气:https://www.0dtq.com/jiaokou/40tian.html 推荐查看天气:https://www.0dtq.com/xiaoyi/ 推荐查看天气:https://www.0dtq.com/xiaoyi/zuotian.html 推荐查看天气:https://www.0dtq.com/xiaoyi/7tian.html 推荐查看天气:https://www.0dtq.com/xiaoyi/10tian.html 推荐查看天气:https://www.0dtq.com/xiaoyi/15tian.html 推荐查看天气:https://www.0dtq.com/xiaoyi/40tian.html 推荐查看天气:https://www.0dtq.com/fenyang/ 推荐查看天气:https://www.0dtq.com/fenyang/zuotian.html 推荐查看天气:https://www.0dtq.com/fenyang/7tian.html 推荐查看天气:https://www.0dtq.com/fenyang/10tian.html 推荐查看天气:https://www.0dtq.com/fenyang/15tian.html 推荐查看天气:https://www.0dtq.com/fenyang/40tian.html 推荐查看天气:https://www.0dtq.com/huhehaote/ 推荐查看天气:https://www.0dtq.com/huhehaote/zuotian.html 推荐查看天气:https://www.0dtq.com/huhehaote/7tian.html 推荐查看天气:https://www.0dtq.com/huhehaote/10tian.html 推荐查看天气:https://www.0dtq.com/huhehaote/15tian.html 推荐查看天气:https://www.0dtq.com/huhehaote/40tian.html 推荐查看天气:https://www.0dtq.com/yuquan/ 推荐查看天气:https://www.0dtq.com/yuquan/zuotian.html 推荐查看天气:https://www.0dtq.com/yuquan/7tian.html 推荐查看天气:https://www.0dtq.com/yuquan/10tian.html 推荐查看天气:https://www.0dtq.com/yuquan/15tian.html 推荐查看天气:https://www.0dtq.com/yuquan/40tian.html 推荐查看天气:https://www.0dtq.com/saihan/ 推荐查看天气:https://www.0dtq.com/saihan/zuotian.html 推荐查看天气:https://www.0dtq.com/saihan/7tian.html 推荐查看天气:https://www.0dtq.com/saihan/10tian.html 推荐查看天气:https://www.0dtq.com/saihan/15tian.html 推荐查看天气:https://www.0dtq.com/saihan/40tian.html 推荐查看天气:https://www.0dtq.com/tumotezuoqi/ 推荐查看天气:https://www.0dtq.com/tumotezuoqi/zuotian.html 推荐查看天气:https://www.0dtq.com/tumotezuoqi/7tian.html 推荐查看天气:https://www.0dtq.com/tumotezuoqi/10tian.html 推荐查看天气:https://www.0dtq.com/tumotezuoqi/15tian.html 推荐查看天气:https://www.0dtq.com/tumotezuoqi/40tian.html 推荐查看天气:https://www.0dtq.com/tuoketuo/ 推荐查看天气:https://www.0dtq.com/tuoketuo/zuotian.html 推荐查看天气:https://www.0dtq.com/tuoketuo/7tian.html 推荐查看天气:https://www.0dtq.com/tuoketuo/10tian.html 推荐查看天气:https://www.0dtq.com/tuoketuo/15tian.html 推荐查看天气:https://www.0dtq.com/tuoketuo/40tian.html

优秀的个人博客,低调大师

JavaScript 中 Intl.NumberFormat 的实战用法:从千分位到货币与单位格式化

最近在一个后台管理项目的财务模块里,需要在页面上展示多币种金额、百分比、文件大小和紧凑数字(比如 12.3K、1.2M),后端返回的都是原始数值,前端要按不同地区用户的习惯做本地化格式化。以前团队里习惯手写 `toFixed`、字符串截取加符号,结果遇到欧元符号位置、印度数字分组(1,00,000 这种)、阿拉伯语环境下的数字方向时,代码里全是判断分支,维护起来很痛苦。后来把这类需求统一交给 `Intl.NumberFormat`,大部分逻辑都收敛成配置项了。这篇文章整理一下我在实际项目里用到的几种配置方式,包括普通数字分组、货币格式、百分比、紧凑计数,以及如何通过 `formatToParts` 做更细粒度的渲染控制。 ## 基础用法与常见参数 `Intl.NumberFormat` 是 ECMAScript 国际化 API 的一部分,现代浏览器和 Node.js(完整 ICU 版本)都支持。最基本的用法就是传入语言标签,然后调用 `format`: ```js const nf = new Intl.NumberFormat('zh-CN'); nf.format(1234567.89); // "1,234,567.89" const nfEn = new Intl.NumberFormat('en-US'); nfEn.format(1234567.89); // "1,234,567.89" const nfDe = new Intl.NumberFormat('de-DE'); nfDe.format(1234567.89); // "1.234.567,89" ``` 德语环境里千分位和小数点正好和英语相反,如果自己拼字符串很容易漏掉这种差异。`Intl.NumberFormat` 内部根据 CLDR 数据做处理,不需要我们维护规则。 几个常用的选项: - `style`:`decimal`(默认)、`currency`、`percent`、`unit` - `currency`:当 `style` 为 `currency` 时必填,ISO 4217 代码,比如 `CNY`、`USD`、`EUR` - `currencyDisplay`:`symbol`、`code`、`name`,控制显示符号还是文字 - `useGrouping`:是否启用千分位分组 - `minimumFractionDigits` / `maximumFractionDigits`:控制小数位数 - `notation`:`standard`、`scientific`、`engineering`、`compact` ## 货币格式化里容易踩的坑 做跨境电商时遇到过一个问题:同一个商品价格,美国用户看到 `$1,299.00`,法国用户看到 `1 299,00 €`,日本用户看到 `¥1,299`。如果按字符串拼接,需要维护每个币种的小数位数和符号位置。用 `Intl` 直接写: ```js function formatCurrency(value, currency, locale) { return new Intl.NumberFormat(locale, { style: 'currency', currency, // 有些业务要求固定两位小数,避免 ¥1,299 这种没有小数位的展示 minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(value); } formatCurrency(1299, 'USD', 'en-US'); // "$1,299.00" formatCurrency(1299, 'EUR', 'fr-FR'); // "1 299,00 €" formatCurrency(1299, 'JPY', 'ja-JP'); // "¥1,299.00" ``` 注意日元本身在 CLDR 里默认没有小数位,如果业务强制两位,需要通过 `minimumFractionDigits` 覆盖。另外 `currencyDisplay` 设成 `name` 时会输出“1,299.00 美元”这样的文字,在需要无障碍朗读的场景下有用。 ## 百分比和紧凑计数 百分比场景是数据看板里最常见的,比如增长率、转化率。后端通常返回 0.1234 这样的比例,前端要显示成 12.34%。 ```js const percentFmt = new Intl.NumberFormat('zh-CN', { style: 'percent', minimumFractionDigits: 1, maximumFractionDigits: 2 }); percentFmt.format(0.1234); // "12.34%" percentFmt.format(0.5); // "50.0%" ``` `style: 'percent'` 会自动把数值乘以 100 并追加百分号,不需要自己算。 紧凑计数适合展示点赞数、阅读量、文件大小这类数字。`notation: 'compact'` 会按语言习惯输出 K、M、B 或者中文的“万”“亿”: ```js const compactZh = new Intl.NumberFormat('zh-CN', { notation: 'compact', compactDisplay: 'short' }); compactZh.format(12345); // "1.2万" compactZh.format(123456789); // "1.2亿" const compactEn = new Intl.NumberFormat('en-US', { notation: 'compact' }); compactEn.format(12345); // "12K" ``` 中文环境下 `compactDisplay: 'long'` 会输出“1.2万”这种形式,`short` 在某些实现里会输出“1.2万”也可能输出“1.2万”,具体看 ICU 版本。实际项目里如果对展示文案有严格 UI 要求,建议用 `formatToParts` 拿到数字和单位分别处理。 ## 用 formatToParts 做细粒度控制 有时候设计稿要求数字用一种字体、单位用另一种字体,或者要把单位变成可点击的 tooltip。`format` 返回的是完整字符串,拿不到分段信息,这时候用 `formatToParts`: ```js const fmt = new Intl.NumberFormat('zh-CN', { style: 'currency', currency: 'CNY', currencyDisplay: 'symbol' }); console.log(fmt.formatToParts(1234.5)); // [ // { type: 'currency', value: '¥' }, // { type: 'integer', value: '1' }, // { type: 'group', value: ',' }, // { type: 'integer', value: '234' }, // { type: 'decimal', value: '.' }, // { type: 'fraction', value: '5' } // ] ``` 在 Vue 或 React 里可以这样渲染: ```jsx function CurrencyText({ value, currency, locale }) { const parts = new Intl.NumberFormat(locale, { style: 'currency', currency }).formatToParts(value); return ( {parts.map((part, i) => ( {part.value} ))} ); } ``` 配合 CSS 就能给 `.part-currency` 单独设颜色或边距,不用去拆字符串。 ## 单位格式化的实际场景 文件大小、距离、温度这些带单位的数值,用 `style: 'unit'` 比手动拼 `MB`、`km` 更省事: ```js const byteFmt = new Intl.NumberFormat('zh-CN', { style: 'unit', unit: 'megabyte', unitDisplay: 'short' }); byteFmt.format(2.5); // "2.5 MB" const kmFmt = new Intl.NumberFormat('en-US', { style: 'unit', unit: 'kilometer', unitDisplay: 'long' }); kmFmt.format(5); // "5 kilometers" ``` `unit` 支持的单位列表在 ECMA-402 规范里有定义,常见的 `byte`、`kilobyte`、`megabyte`、`gigabyte`、`second`、`minute`、`hour`、`celsius`、`fahrenheit`、`kilometer`、`mile` 都可用。 不过要注意,`Intl.NumberFormat` 的 `unit` 并不会自动做单位换算。2.5 MB 传入 `megabyte` 就是 2.5 MB,不会帮你从字节转过来。换算逻辑还是得自己写,只是把显示部分交给它。 ## 性能与缓存 `new Intl.NumberFormat` 的构造过程涉及加载 locale 数据,虽然现代浏览器做了缓存,但在列表里对每个单元格都 new 一次仍然不划算。常见的做法是按 `locale + options` 做 key 缓存 formatter 实例: ```js const cache = new Map(); function getFormatter(locale, options) { const key = locale + JSON.stringify(options); if (!cache.has(key)) { cache.set(key, new Intl.NumberFormat(locale, options)); } return cache.get(key); } ``` 在表格里渲染几百行时,这个缓存能省掉不少重复构造。另一个细节是 `Intl.NumberFormat` 的 options 对象顺序会影响 `JSON.stringify` 的结果,如果动态拼 options,最好保证字段顺序稳定,否则缓存命中率会下降。 ## Node.js 环境下的注意点 Node.js 从 13 开始默认带 full-icu,但有些 Docker 镜像为了减小体积会裁剪掉 ICU 数据,导致 `Intl.NumberFormat` 输出英文格式甚至报错。线上服务如果做服务端渲染,构建镜像时确认 `node -p "process.config.variables.icu_small"` 是 false,或者直接用官方 node 镜像。 ```js // 检查当前 Node 的 ICU 支持情况 console.log(Intl.NumberFormat.supportedLocalesOf(['zh-CN', 'de-DE', 'ar-EG'])); ``` 如果返回数组里缺少你需要的 locale,说明 ICU 数据不全,需要换构建方式或安装 `full-icu` 包。 `Intl.NumberFormat` 不能覆盖所有格式化需求,比如自定义的“前 N 位用大字号、后 M 位用小字号”这种设计稿,还是得靠 `formatToParts` 配合样式。但常规的数字本地化、货币、百分比、紧凑计数和单位显示,用它比手写规则靠谱得多,也省掉了大量 locale 判断代码。 推荐查看天气:http://www.362tq.com/jiancaoping/ 推荐查看天气:http://www.362tq.com/jiancaoping/zuotian.html 推荐查看天气:http://www.362tq.com/jiancaoping/7tian.html 推荐查看天气:http://www.362tq.com/jiancaoping/10tian.html 推荐查看天气:http://www.362tq.com/jiancaoping/15tian.html 推荐查看天气:http://www.362tq.com/jiancaoping/40tian.html 推荐查看天气:http://www.362tq.com/wanbailin/ 推荐查看天气:http://www.362tq.com/wanbailin/zuotian.html 推荐查看天气:http://www.362tq.com/wanbailin/7tian.html 推荐查看天气:http://www.362tq.com/wanbailin/10tian.html 推荐查看天气:http://www.362tq.com/wanbailin/15tian.html 推荐查看天气:http://www.362tq.com/wanbailin/40tian.html 推荐查看天气:http://www.362tq.com/jinyuan/ 推荐查看天气:http://www.362tq.com/jinyuan/zuotian.html 推荐查看天气:http://www.362tq.com/jinyuan/7tian.html 推荐查看天气:http://www.362tq.com/jinyuan/10tian.html 推荐查看天气:http://www.362tq.com/jinyuan/15tian.html 推荐查看天气:http://www.362tq.com/jinyuan/40tian.html 推荐查看天气:http://www.362tq.com/qingxu/ 推荐查看天气:http://www.362tq.com/qingxu/zuotian.html 推荐查看天气:http://www.362tq.com/qingxu/7tian.html 推荐查看天气:http://www.362tq.com/qingxu/10tian.html 推荐查看天气:http://www.362tq.com/qingxu/15tian.html 推荐查看天气:http://www.362tq.com/qingxu/40tian.html 推荐查看天气:http://www.362tq.com/yangqu/ 推荐查看天气:http://www.362tq.com/yangqu/zuotian.html 推荐查看天气:http://www.362tq.com/yangqu/7tian.html 推荐查看天气:http://www.362tq.com/yangqu/10tian.html 推荐查看天气:http://www.362tq.com/yangqu/15tian.html 推荐查看天气:http://www.362tq.com/yangqu/40tian.html 推荐查看天气:http://www.362tq.com/loufan/ 推荐查看天气:http://www.362tq.com/loufan/zuotian.html 推荐查看天气:http://www.362tq.com/loufan/7tian.html 推荐查看天气:http://www.362tq.com/loufan/10tian.html 推荐查看天气:http://www.362tq.com/loufan/15tian.html 推荐查看天气:http://www.362tq.com/loufan/40tian.html 推荐查看天气:http://www.362tq.com/gujiao/ 推荐查看天气:http://www.362tq.com/gujiao/zuotian.html 推荐查看天气:http://www.362tq.com/gujiao/7tian.html 推荐查看天气:http://www.362tq.com/gujiao/10tian.html 推荐查看天气:http://www.362tq.com/gujiao/15tian.html 推荐查看天气:http://www.362tq.com/gujiao/40tian.html 推荐查看天气:http://www.362tq.com/datongshi/ 推荐查看天气:http://www.362tq.com/datongshi/zuotian.html 推荐查看天气:http://www.362tq.com/datongshi/7tian.html 推荐查看天气:http://www.362tq.com/datongshi/10tian.html 推荐查看天气:http://www.362tq.com/datongshi/15tian.html 推荐查看天气:http://www.362tq.com/datongshi/40tian.html 推荐查看天气:http://www.362tq.com/nanjiao/ 推荐查看天气:http://www.362tq.com/nanjiao/zuotian.html 推荐查看天气:http://www.362tq.com/nanjiao/7tian.html 推荐查看天气:http://www.362tq.com/nanjiao/10tian.html 推荐查看天气:http://www.362tq.com/nanjiao/15tian.html 推荐查看天气:http://www.362tq.com/nanjiao/40tian.html 推荐查看天气:http://www.362tq.com/xinrong/ 推荐查看天气:http://www.362tq.com/xinrong/zuotian.html 推荐查看天气:http://www.362tq.com/xinrong/7tian.html 推荐查看天气:http://www.362tq.com/xinrong/10tian.html 推荐查看天气:http://www.362tq.com/xinrong/15tian.html 推荐查看天气:http://www.362tq.com/xinrong/40tian.html 推荐查看天气:http://www.362tq.com/yanggao/ 推荐查看天气:http://www.362tq.com/yanggao/zuotian.html 推荐查看天气:http://www.362tq.com/yanggao/7tian.html 推荐查看天气:http://www.362tq.com/yanggao/10tian.html 推荐查看天气:http://www.362tq.com/yanggao/15tian.html 推荐查看天气:http://www.362tq.com/yanggao/40tian.html 推荐查看天气:http://www.362tq.com/tianzhen/ 推荐查看天气:http://www.362tq.com/tianzhen/zuotian.html 推荐查看天气:http://www.362tq.com/tianzhen/7tian.html 推荐查看天气:http://www.362tq.com/tianzhen/10tian.html 推荐查看天气:http://www.362tq.com/tianzhen/15tian.html 推荐查看天气:http://www.362tq.com/tianzhen/40tian.html 推荐查看天气:http://www.362tq.com/datongguangling/ 推荐查看天气:http://www.362tq.com/datongguangling/zuotian.html 推荐查看天气:http://www.362tq.com/datongguangling/7tian.html 推荐查看天气:http://www.362tq.com/datongguangling/10tian.html 推荐查看天气:http://www.362tq.com/datongguangling/15tian.html 推荐查看天气:http://www.362tq.com/datongguangling/40tian.html 推荐查看天气:http://www.362tq.com/lingqiu/ 推荐查看天气:http://www.362tq.com/lingqiu/zuotian.html 推荐查看天气:http://www.362tq.com/lingqiu/7tian.html 推荐查看天气:http://www.362tq.com/lingqiu/10tian.html 推荐查看天气:http://www.362tq.com/lingqiu/15tian.html 推荐查看天气:http://www.362tq.com/lingqiu/40tian.html 推荐查看天气:http://www.362tq.com/hunyuan/ 推荐查看天气:http://www.362tq.com/hunyuan/zuotian.html 推荐查看天气:http://www.362tq.com/hunyuan/7tian.html 推荐查看天气:http://www.362tq.com/hunyuan/10tian.html 推荐查看天气:http://www.362tq.com/hunyuan/15tian.html 推荐查看天气:http://www.362tq.com/hunyuan/40tian.html 推荐查看天气:http://www.362tq.com/zuoyun/ 推荐查看天气:http://www.362tq.com/zuoyun/zuotian.html 推荐查看天气:http://www.362tq.com/zuoyun/7tian.html 推荐查看天气:http://www.362tq.com/zuoyun/10tian.html 推荐查看天气:http://www.362tq.com/zuoyun/15tian.html 推荐查看天气:http://www.362tq.com/zuoyun/40tian.html 推荐查看天气:http://www.362tq.com/datongxian/ 推荐查看天气:http://www.362tq.com/datongxian/zuotian.html 推荐查看天气:http://www.362tq.com/datongxian/7tian.html 推荐查看天气:http://www.362tq.com/datongxian/10tian.html 推荐查看天气:http://www.362tq.com/datongxian/15tian.html 推荐查看天气:http://www.362tq.com/datongxian/40tian.html 推荐查看天气:http://www.362tq.com/yangquan/ 推荐查看天气:http://www.362tq.com/yangquan/zuotian.html 推荐查看天气:http://www.362tq.com/yangquan/7tian.html 推荐查看天气:http://www.362tq.com/yangquan/10tian.html 推荐查看天气:http://www.362tq.com/yangquan/15tian.html 推荐查看天气:http://www.362tq.com/yangquan/40tian.html 推荐查看天气:http://www.362tq.com/kuangqu/ 推荐查看天气:http://www.362tq.com/kuangqu/zuotian.html 推荐查看天气:http://www.362tq.com/kuangqu/7tian.html 推荐查看天气:http://www.362tq.com/kuangqu/10tian.html 推荐查看天气:http://www.362tq.com/kuangqu/15tian.html 推荐查看天气:http://www.362tq.com/kuangqu/40tian.html 推荐查看天气:http://www.362tq.com/pingding/ 推荐查看天气:http://www.362tq.com/pingding/zuotian.html 推荐查看天气:http://www.362tq.com/pingding/7tian.html 推荐查看天气:http://www.362tq.com/pingding/10tian.html 推荐查看天气:http://www.362tq.com/pingding/15tian.html 推荐查看天气:http://www.362tq.com/pingding/40tian.html 推荐查看天气:http://www.362tq.com/yuxian/ 推荐查看天气:http://www.362tq.com/yuxian/zuotian.html 推荐查看天气:http://www.362tq.com/yuxian/7tian.html 推荐查看天气:http://www.362tq.com/yuxian/10tian.html 推荐查看天气:http://www.362tq.com/yuxian/15tian.html 推荐查看天气:http://www.362tq.com/yuxian/40tian.html 推荐查看天气:http://www.362tq.com/changzhi/ 推荐查看天气:http://www.362tq.com/changzhi/zuotian.html 推荐查看天气:http://www.362tq.com/changzhi/7tian.html 推荐查看天气:http://www.362tq.com/changzhi/10tian.html 推荐查看天气:http://www.362tq.com/changzhi/15tian.html 推荐查看天气:http://www.362tq.com/changzhi/40tian.html 推荐查看天气:http://www.362tq.com/xiangyuan/ 推荐查看天气:http://www.362tq.com/xiangyuan/zuotian.html 推荐查看天气:http://www.362tq.com/xiangyuan/7tian.html 推荐查看天气:http://www.362tq.com/xiangyuan/10tian.html 推荐查看天气:http://www.362tq.com/xiangyuan/15tian.html 推荐查看天气:http://www.362tq.com/xiangyuan/40tian.html 推荐查看天气:http://www.362tq.com/tunliu/ 推荐查看天气:http://www.362tq.com/tunliu/zuotian.html 推荐查看天气:http://www.362tq.com/tunliu/7tian.html 推荐查看天气:http://www.362tq.com/tunliu/10tian.html 推荐查看天气:http://www.362tq.com/tunliu/15tian.html 推荐查看天气:http://www.362tq.com/tunliu/40tian.html 推荐查看天气:http://www.362tq.com/pingshun/ 推荐查看天气:http://www.362tq.com/pingshun/zuotian.html 推荐查看天气:http://www.362tq.com/pingshun/7tian.html 推荐查看天气:http://www.362tq.com/pingshun/10tian.html 推荐查看天气:http://www.362tq.com/pingshun/15tian.html 推荐查看天气:http://www.362tq.com/pingshun/40tian.html 推荐查看天气:http://www.362tq.com/changzhilicheng/ 推荐查看天气:http://www.362tq.com/changzhilicheng/zuotian.html 推荐查看天气:http://www.362tq.com/changzhilicheng/7tian.html 推荐查看天气:http://www.362tq.com/changzhilicheng/10tian.html 推荐查看天气:http://www.362tq.com/changzhilicheng/15tian.html 推荐查看天气:http://www.362tq.com/changzhilicheng/40tian.html 推荐查看天气:http://www.362tq.com/huguan/ 推荐查看天气:http://www.362tq.com/huguan/zuotian.html 推荐查看天气:http://www.362tq.com/huguan/7tian.html 推荐查看天气:http://www.362tq.com/huguan/10tian.html 推荐查看天气:http://www.362tq.com/huguan/15tian.html 推荐查看天气:http://www.362tq.com/huguan/40tian.html 推荐查看天气:http://www.362tq.com/changzi/ 推荐查看天气:http://www.362tq.com/changzi/zuotian.html 推荐查看天气:http://www.362tq.com/changzi/7tian.html 推荐查看天气:http://www.362tq.com/changzi/10tian.html 推荐查看天气:http://www.362tq.com/changzi/15tian.html 推荐查看天气:http://www.362tq.com/changzi/40tian.html 推荐查看天气:http://www.362tq.com/wuxiang/ 推荐查看天气:http://www.362tq.com/wuxiang/zuotian.html 推荐查看天气:http://www.362tq.com/wuxiang/7tian.html 推荐查看天气:http://www.362tq.com/wuxiang/10tian.html 推荐查看天气:http://www.362tq.com/wuxiang/15tian.html 推荐查看天气:http://www.362tq.com/wuxiang/40tian.html 推荐查看天气:http://www.362tq.com/qinxian/ 推荐查看天气:http://www.362tq.com/qinxian/zuotian.html 推荐查看天气:http://www.362tq.com/qinxian/7tian.html 推荐查看天气:http://www.362tq.com/qinxian/10tian.html 推荐查看天气:http://www.362tq.com/qinxian/15tian.html 推荐查看天气:http://www.362tq.com/qinxian/40tian.html 推荐查看天气:http://www.362tq.com/qinyuan/ 推荐查看天气:http://www.362tq.com/qinyuan/zuotian.html 推荐查看天气:http://www.362tq.com/qinyuan/7tian.html 推荐查看天气:http://www.362tq.com/qinyuan/10tian.html 推荐查看天气:http://www.362tq.com/qinyuan/15tian.html 推荐查看天气:http://www.362tq.com/qinyuan/40tian.html 推荐查看天气:http://www.362tq.com/shuozhou/ 推荐查看天气:http://www.362tq.com/shuozhou/zuotian.html 推荐查看天气:http://www.362tq.com/shuozhou/7tian.html 推荐查看天气:http://www.362tq.com/shuozhou/10tian.html 推荐查看天气:http://www.362tq.com/shuozhou/15tian.html 推荐查看天气:http://www.362tq.com/shuozhou/40tian.html 推荐查看天气:http://www.362tq.com/shuocheng/ 推荐查看天气:http://www.362tq.com/shuocheng/zuotian.html 推荐查看天气:http://www.362tq.com/shuocheng/7tian.html 推荐查看天气:http://www.362tq.com/shuocheng/10tian.html 推荐查看天气:http://www.362tq.com/shuocheng/15tian.html 推荐查看天气:http://www.362tq.com/shuocheng/40tian.html 推荐查看天气:http://www.362tq.com/shuozhoupinglu/ 推荐查看天气:http://www.362tq.com/shuozhoupinglu/zuotian.html

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码