Tag
一篇技术短文,介绍如何用 document.currentScript 实现 HTML 中的内联动态渲染(如当前年份、随机问候语、逐字拆分动画),无需模板引擎或后端。
Simon Willison 链接分享了 Lean Rada 的一个前端小技巧:利用 document.currentScript 让内联 <script> 在页面加载时替换自身,从而用极简代码实现一个微型模板语言。
This tool provides interactive examples to explain shadow roots in CSS, demonstrating style encapsulation, inheritance, slots, and JavaScript access.
The author discusses an edge case in their agent-readable-manifest API where webpage elements are not currently interactable due to visibility, highlighting the distinction between element existence and current interactability for web agents.
12-year-old Drupal core developer Dmitri Gaskin demoed core jQuery usage at TechTalk in 2008, including selectors, traversal, DOM manipulation, and CSS operations, emphasizing "write less, do more."
GlyphCSS is a JavaScript library that renders textured 3D meshes in the DOM using ASCII characters, supporting various 3D formats and integrating with vanilla JS, React, and Vue.