hx-params

hx-params 属性允许你过滤将随 AJAX 请求提交的参数。

¥The hx-params attribute allows you to filter the parameters that will be submitted with an AJAX request.

此属性的可能值为:

¥The possible values of this attribute are:

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

此 div 将包含 POST 的所有参数,但它们将被 URL 编码并包含在 URL 中,就像 GET 一样。

¥This div will include all the parameters that a POST would, but they will be URL encoded and included in the URL, as per usual with a GET.

注释

¥Notes