hx-params

hx-params ์†์„ฑ์€ AJAX ์š”์ฒญ๊ณผ ํ•จ๊ป˜ ์ œ์ถœ๋  ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.

์ด ์†์„ฑ์˜ ๊ฐ€๋Šฅํ•œ ๊ฐ’์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค:

  <div hx-get="/example" hx-params="*">Get Some HTML, Including Params</div>

์ด div๋Š” POST๊ฐ€ ํฌํ•จํ•  ๋ชจ๋“  ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ํฌํ•จํ•˜์ง€๋งŒ, ์ผ๋ฐ˜์ ์ธ GET ์š”์ฒญ์ฒ˜๋Ÿผ URL ์ธ์ฝ”๋”ฉ๋˜์–ด URL์— ํฌํ•จ๋ฉ๋‹ˆ๋‹ค.

Notes