数据绑定和模板系统 Rivets.js

码农软件 · 软件分类 · JavaScript MVC 框架 · 2019-03-15 16:58:44
  • 授权协议: MIT
  • 开发语言: JavaScript
  • 操作系统: 跨平台
  • 软件首页: http://rivetsjs.com/

软件介绍

Rivets.js 是一个轻量级的数据绑定和模板系统,用于构建数据驱动的视图界面。可方便将前端MV(C|VM|P)的各个方面集成到你的业务流程中。

使用方法:

<section id="auction">
  <h3>{ auction.product.name }</h3>
  <p>Current bid: { auction.currentBid | money }</p>

  <aside rv-if="auction.timeLeft | lt 120">
    Hurry up! There is { auction.timeLeft | time } left.
  </aside>
</section>

rivets.bind($('#auction'), {auction: auction})


本文地址:https://codercto.com/soft/d/1415.html

The Nature of Code

The Nature of Code

Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95

How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具