jQuery 模板引擎 [英] jQuery templating engines

查看:39
本文介绍了jQuery 模板引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个模板引擎来使用客户端.我一直在尝试一些像 jsRepeater 和 jQuery 模板.虽然它们在 FireFox 中似乎运行良好,但在 IE7 中,当涉及到呈现 HTML 表格时,它们似乎都崩溃了.

I am looking for a template engine to use client side. I have been trying a few like jsRepeater and jQuery Templates. While they seem to work OK in FireFox they all seem to break down in IE7 when it comes down to rendering HTML tables.

我还查看了 MicrosoftAjaxTemplates.js(来自 http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=16766) 但结果证明存在同样的问题.

I also took a look at MicrosoftAjaxTemplates.js (from http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=16766) but turns out that has the same problem.

对使用其他模板引擎有什么建议吗?

Any advice on other templating engines to use?

推荐答案

查看 Rick Strahl 的帖子 使用 jQuery 的客户端模板.他探索了 jTemplates,然后为 John Resig 的微模板解决方案提供了一个更好的案例,甚至改进它一些.很好的比较,大量的样本.

Check out Rick Strahl's post Client Templating with jQuery. He explores jTemplates, but then makes a better case for John Resig's micro-templating solution, even improving it some. Good comparisons, lots of samples.

这篇关于jQuery 模板引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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