Intercooler.js数据绑定库

联合创作 · 2023-09-22

Intercooler 是一个 PVC 框架,允许你使用 HTML5 风格绑定和 RESTful URL 来在应用中添加 AJAX 特性。这让 Web 应用有着更好的用户体验。使用 Intercooler 你可以使用非常容易理解的声明式属性来绑定你的 HTML 元素到 Ajax 调用点。

示例代码:

  <-- This button posts to the /example/click
         URL when it is clicked -->
  <button ic-post-to="/example/click">
    Click Me!
  </button>

  <-- This span is bound to a URL that returns an updated
      version of the span when the button is clicked -->
  <span ic-src="/example/click">
     You have not yet clicked the button
  </span>
浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报