Intercooler.js- 数据绑定库

JavaScript 常用JavaScript包

详细介绍

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>