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

Flash与后台

Flash与后台

刘明伟 / 清华大学出版社 / 2007-6 / 52.00元

《Flash与后台:ASP/ASP.NET/PHP/Java/JavaScript/Delphi总动员》从目前热门的F1ash与ASP、ASP.NET、PHP、Java、JavaScript和Delphi的交互知识入手,深入浅出地讲解了F1ash与后台通信的原理和交互的过程,力求使阅读《Flash与后台:ASP/ASP.NET/PHP/Java/JavaScript/Delphi总动员》的每一位读......一起来看看 《Flash与后台》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

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

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具