在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bigskysoftware/htmx开源软件地址:https://github.com/bigskysoftware/htmx开源编程语言:JavaScript 95.0%开源软件介绍:high power tools for HTML introductionhtmx allows you to access AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext htmx is small (~10k min.gz'd), dependency-free, extendable & IE11 compatible motivation
By removing these arbitrary constraints htmx completes HTML as a hypertext quick start <script src="https://unpkg.com/[email protected]"></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me
</button> The
htmx is the successor to intercooler.js installing as a node packageTo install using npm:
Note there is an old broken package called website & docscontributing
hacking guideTo develop htmx locally, you will need to install the development dependencies. Use node 15 and run:
Then, run a web server in the root. This is easiest with Python:
You can then run the test suite by navigating to: At this point you can modify
htmx uses the mocha testing framework, the chai assertion framework and sinon to mock out AJAX requests. They are all OK. haikujavascript fatigue: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论