mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-16 12:11:21 +08:00
doc: add badges.
This commit is contained in:
13
docs/htmx.md
13
docs/htmx.md
@ -1,7 +1,13 @@
|
||||
\</> htmx 备忘清单
|
||||
===
|
||||
|
||||
[](https://npmjs.org/package/htmx.org)
|
||||
[](https://www.npmjs.com/package/htmx.org)
|
||||
[](https://github.com/bigskysoftware/htmx/network/dependents)
|
||||
[](https://github.com/bigskysoftware/htmx)
|
||||
|
||||
适合初学者的综合 [htmx](https://htmx.org/) 备忘清单
|
||||
<!--rehype:style=padding-top: 12px;-->
|
||||
|
||||
入门
|
||||
---
|
||||
@ -17,17 +23,12 @@
|
||||
点击我
|
||||
</button>
|
||||
```
|
||||
<!--rehype:className=wrap-text-->
|
||||
|
||||
`hx-post` 和 `hx-swap` 属性告诉 `htmx`:
|
||||
|
||||
> 当用户单击此按钮时,向 `/clicked` 发出 `AJAX` 请求,并用响应替换整个按钮
|
||||
|
||||
---
|
||||
|
||||
[](https://npmjs.org/package/htmx.org)
|
||||
[](https://www.npmjs.com/package/htmx.org)
|
||||
[](https://github.com/bigskysoftware/htmx/network/dependents)
|
||||
|
||||
```bash
|
||||
$ npm install htmx.org
|
||||
```
|
||||
|
Reference in New Issue
Block a user