lisisi
V2EX  ›  HTML

htmx 是复古?还是新潮流?

  •  
  •   lisisi · Oct 18, 2022 via Android · 5437 views
    This topic created in 1307 days ago, the information mentioned may be changed or developed.

    看到有两种意见:

    1. React/Vue 等前端工程化对于轻量表单交互的大多应用,都过于繁琐了,htmx 是利器。
    2. htmx 是新瓶装旧酒,不就是 jsp 、aspx 吗? php 一直就是这么玩的。

    htmx.org

    7 replies    2023-02-18 10:57:32 +08:00
    anjianshi
        1
    anjianshi  
       Oct 18, 2022
    简单交互的页面不如直接用 jQuery
    只需要支持新浏览器的话甚至 jQuery 都不用,用 document.querySelector() 和 fetch() 等新的 API 已经很方便了。
    感觉这个挺鸡肋的?
    wellsc
        2
    wellsc  
       Oct 18, 2022
    你们前端可这能玩啊
    fuxkcsdn
        3
    fuxkcsdn  
       Oct 18, 2022
    smarty 模板表示这都能有 8.5K 的 star ?
    krixaar
        4
    krixaar  
       Oct 18, 2022
    特殊场景好用,之前懒得上框架,htmx+django 自带的模板系统直接搭 SPA 相当省事
    tf2
        5
    tf2  
       Oct 18, 2022
    htmlx 的死穴是没法用 RN 之类的偷工减料糊 app 端
    clino
        6
    clino  
       Oct 24, 2022
    @anjianshi 看了下文档,感觉 jquery 的可读性不如 htmx ,当然 htmx 比较多后端生成 html ,感觉和 jquery 的方式很不一样,摆在一起不是很好比
    mayli
        7
    mayli  
       Feb 18, 2023 via Android
    Python 后端狂喜
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4341 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 00:14 · PVG 08:14 · LAX 17:14 · JFK 20:14
    ♥ Do have faith in what you're doing.