jQuery中的jTemplate是什么? [英] What is jTemplate in jQuery?

查看:67
本文介绍了jQuery中的jTemplate是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能解释一下jTemplate到底是什么吗?我看过很多示例,但我听不懂.为什么在Asp.Net中使用它?
在此先感谢,
Laxmi.

Hi Could any one explain me what exactly the jTemplate is ?I have seen many examples but i didn''t understand.Why this is used in Asp.Net?
Thanks in Advance,
Laxmi.

推荐答案

我没有给您指向链接,而是简要概述了jTemplate为您提供的功能.顾名思义,它是用JavaScript编写的,可提供模板支持.虽然它通常与jQuery相关联,但并没有真正的要求,您必须自己使用jQuery才能使用它.

简而言之,jTemplate使您能够迭代一组数据(例如对象数组),并格式化该数据以显示给用户.尽管可以使用ASP.NET编写应用程序,但是模板不需要任何服务器端功能即可实际显示数据,因此它们可以使用直接的HTML标记.

如果您想查看实际的示例,建议您阅读(并尝试)
Rather than point you to links, I''ll give a brief overview of what jTemplate does for you. As the name suggests, it''s something written in JavaScript that provides template support. While it''s commonly associated with jQuery, there is no real requirement that you have to use jQuery yourself to use it.

At a simple level, jTemplate provides you with the ability to iterate of a set of data (such as an array of objects), and format that data for display to the user. While you can write your application using ASP.NET, the templates do not require any server side functionality to actually display the data, so they can use straight HTML tags.

If you want to see an example in action, I''d suggest reading (and trying out) this[^] article.


^ ]对您可能有用.
jQuery (jTemplates) Grid[^] could be useful to you.


检查以下内容:

asp.net中的模板 [ using-the-jtemplate -jquery-plugin-with-ajax-and-asp-net [
check these out:

Jtemplate in asp.net[^]

using-the-jtemplate-jquery-plugin-with-ajax-and-asp-net[^]

hope it helps :)


这篇关于jQuery中的jTemplate是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆