jsRepeater

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 16:44:35

软件介绍

HTML Templating with minimal javascript

$('#myDiv').fillTemplate(myData)

The jsRepeater makes it easy to fill HTML Templates with javascript objects e.g. data received from the server via AJAX

<script>
var myData = {"Name" : "Google", "Type" : "Search Engine", "URL" : "www.google.com"};
$('#template1').fillTemplate(myData);
</script>
<body>
<div id='template1'>${Name} is a ${Type} found at <a href='${URL}'>${URL}</a></div>
</body>

results in:
Google is a Search Engine found at www.google.com

This is the most basic example. The power of jsRepeater lies in the fact that it has support for some of the more complex functionality we need in the real world e.g.

  • Binding not only to an object but child objects in one template
  • Ability to write your own javascript functions for output formatting
  • Access to numbering in a loop
  • No need for alternating templates, alternation handled in markup, not only even and odd values but also first and last
  • Infinite recursion down an object graph in one template

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

算法导论(原书第3版)

算法导论(原书第3版)

Thomas H.Cormen、Charles E.Leiserson、Ronald L.Rivest、Clifford Stein / 殷建平、徐云、王刚、刘晓光、苏明、邹恒明、王宏志 / 机械工业出版社 / 2012-12 / 128.00元

在有关算法的书中,有一些叙述非常严谨,但不够全面;另一些涉及了大量的题材,但又缺乏严谨性。本书将严谨性和全面性融为一体,深入讨论各类算法,并着力使这些算法的设计和分析能为各个层次的读者接受。全书各章自成体系,可以作为独立的学习单元;算法以英语和伪代码的形式描述,具备初步程序设计经验的人就能看懂;说明和解释力求浅显易懂,不失深度和数学严谨性。 全书选材经典、内容丰富、结构合理、逻辑清晰,对本科......一起来看看 《算法导论(原书第3版)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具