本文にスキップ
AI News HubLIVE
原典の内容 · 翻訳・分析待ち1 分で読了

翻訳待ち:Inline rendering with document​.currentScript

記事の要約

AI サービスが一時的に利用できないため、復旧後に翻訳を補完します。ソース概要: Inline rendering with document​.currentScript Lean Rada describes a neat trick that takes advantage of the document.currentScript property. You can use that to drop in a tiny inline <script> element that replaces itself when the page loads: The year is <script> document.currentScript.replaceWith( new Date().getFullYear())</script> If you define a shortcut function like this: $=(...n)=>document.currentScript.replaceWith(...n) You get a tiny template language: The year is <script>$(new Date().getFullYear())</script> Tags: javascript

翻訳待ち:Inline rendering with document​.currentScript
誤りを報告

訂正窓口はまだ利用できません。記事情報をコピーして保存できます。

訂正案内
本文へ

AI サービスが一時的に利用できないため、復旧後に翻訳を補完します。

Inline rendering with document​.currentScript Simon Willison’s Weblog Newsletter 17th October 2026 - Link Blog Inline rendering with document​.currentScript. Lean Rada describes a neat trick that takes advantage of the document.currentScript property. You can use that to drop in a tiny inline If you define a shortcut function like this: $=(...n)=>document.currentScript.replaceWith(...n) You get a tiny template language: The year is Recent articles Hello Python 3.15, goodbye 3.10, and now I can use 3.11 - 12th October 2026 A new feature for my blog, built using my voice - 9th October 2026 Claude Haiku 5.5 - 7th October 2026 We're going to need default hard budget caps on pretty much everything - 3rd October 2026 This is a link post by Simon Willison, posted on 17th October 2026. javascript 768 Monthly briefing Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments. Pay me to send you less! Sponsor & subscribe Disclosures Colophon &copy; 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026

要点と分析を開く

記事インテリジェンス

エンジニア中級

要点

  • AI 生成が一時的に利用できないため、ソース内容とフォールバックメタデータを保存しました。
  • Inline rendering with document​.currentScript Lean Rada describes a neat trick tha…

要点と分析は自動生成され、誤りを含む場合があります。原典をご確認ください。

翻訳待ち:Inline rendering with document​.currentScript | AI News Hub