jQuery模板引擎 [英] jQuery templating engines

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

问题描述

我正在寻找使用客户端的模板引擎.我一直在尝试一些jsRepeater和jQuery Templates.尽管它们在FireFox中似乎可以正常工作,但是当涉及到呈现HTML表时,它们似乎都在IE7中崩溃了.

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的帖子微型模板解决方案提供了一个更好的例子,甚至改善了一些.比较好,样本很多.

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天全站免登陆