---
title: "X 归档 2026-02-14"
date: "2026-02-14"
tags:
  - x-archive
---

<div class="x-arch-meta">2 条动态 · 图 1 · 视频 0</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-2022371084776185888" id="xl-2022371084776185888-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-2022371084776185888" id="xl-2022371084776185888-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1511434207079407618/AwzUxnVf_bigger.png" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/MozDevNet" target="_blank" rel="nofollow noopener" data-name="MDN Web Docs" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1511434207079407618/AwzUxnVf_bigger.png">@MozDevNet</a><span class="x-arch-time">02:03</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-2022371084776185888-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-2022371084776185888-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/MozDevNet/status/2022371084776185888" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Working with &lt;dialog&gt; elements? 🤔<br /><br />Don't use .close(), it ends the dialog immediately.<br /><br />Use HTMLDialogElement.requestClose(), it fires a close event first, giving your app a chance to intercept it, useful for confirmation or animations.<br /><br />Try now 👇<br /><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/requestClose" target="_blank" rel="noopener">https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/requestClose</a></div>
    <div class="x-arch-text x-arch-trans">在用 &lt;dialog&gt; 元素吗？🤔<br /><br />别用 .close()，它会立即关闭对话框。<br /><br />改用 HTMLDialogElement.requestClose()，它会先触发一个 close 事件，给你的应用一个拦截的机会，适合做确认弹窗或动画。<br /><br />马上试试 👇<br /><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/requestClose" target="_blank" rel="noopener">https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/requestClose</a></div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-2022381727461892172" id="xl-2022381727461892172-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-2022381727461892172" id="xl-2022381727461892172-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1342417825483300864/Vz4ChOFG_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/jarredsumner" target="_blank" rel="nofollow noopener" data-name="Jarred Sumner" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1342417825483300864/Vz4ChOFG_bigger.jpg">@jarredsumner</a><span class="x-arch-time">02:45</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-2022381727461892172-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-2022381727461892172-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/jarredsumner/status/2022381727461892172" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">In the next version of Bun<br /><br />`Bun.cron(file, schedule, name)` schedules a function to be called on a recurring interval</div>
    <div class="x-arch-text x-arch-trans">在下一个版本的 Bun 中<br /><br />`Bun.cron(file, schedule, name)` 可以按周期性的时间表调度一个函数调用</div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2026-02/2022381727461892172-1.jpg" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2026-02/2022381727461892172-1.jpg" alt="@jarredsumner 的配图 1/1" loading="lazy" decoding="async" width="1611" height="2048" /></a>
    </div>
  </div>
</div>
