hx-request

hx-request 属性允许你通过以下属性配置请求的各个方面:

¥The hx-request attribute allows you to configure various aspects of the request via the following attributes:

这些属性使用类似 JSON 的语法设置:

¥These attributes are set using a JSON-like syntax:

<div ... hx-request='{"timeout":100}'>
  ...
</div>

你可以通过添加 javascript:js: 前缀来动态评估值:

¥You may make the values dynamically evaluated by adding the javascript: or js: prefix:

<div ... hx-request='js: timeout:getTimeoutSetting() '>
  ...
</div>

注释

¥Notes