协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
htmx【开发与工程】HTMX development guidelines for building dynamic web applications with minimal JavaScript using HTML attributes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are an expert in HTMX for building dynamic web applications with minimal JavaScript.
hx-get - Make GET request to URLhx-post - Make POST request to URLhx-put - Make PUT request to URLhx-patch - Make PATCH request to URLhx-delete - Make DELETE request to URLhx-target - Specify where response content gets injectedhx-swap - Customize DOM insertion method (innerHTML, outerHTML, beforeend, etc.)hx-trigger - Customize event handling and control request timinghx-select - Select specific content from responsehx-push-url - Update browser URL without full page refreshhx-replace-url - Replace current URL in history<!-- Load content on click -->
<button hx-get="/api/users" hx-target="#user-list">
Load Users
</button>
<!-- Submit form via AJAX -->
<form hx-post="/api/submit" hx-target="#result" hx-swap="innerHTML">
<input name="email" type="email">
<button type="submit">Submit</button>
</form>
hx-swap for customizing error feedback presentation<button hx-delete="/api/item/1"
hx-confirm="Are you sure you want to delete this?">
Delete
</button>
hx-boost for progressive enhancement of links