Intercooler.js數(shù)據(jù)綁定庫
Intercooler 是一個 PVC 框架,允許你使用 HTML5 風(fēng)格綁定和 RESTful URL 來在應(yīng)用中添加 AJAX 特性。這讓 Web 應(yīng)用有著更好的用戶體驗(yàn)。使用 Intercooler 你可以使用非常容易理解的聲明式屬性來綁定你的 HTML 元素到 Ajax 調(diào)用點(diǎn)。
示例代碼:
<-- 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>
評論
圖片
表情
