哪种模板绑定适合将模型绑定到html页面。 [英] Which Template binding is suitable for binding Model to the html page.

查看:94
本文介绍了哪种模板绑定适合将模型绑定到html页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用模板将模型数据和HTML脚本绑定到Html页面。其中模板引擎最适合此目的。



目前我是使用jquery模板引擎。但我听说Jquery模板引擎已被删除..



感谢您的建议。

I want to Use templates to bind Model data and HTML Script to the Html page.which Template Engine is best Suitable for this Purpose.

At present I am using jquery Template Engine .but i heared that Jquery Template Engine is Depricated..

Thanks For Your Suggestion.

推荐答案

JQuery是当今市场上最好的JS库。实现各种功能所涉及的灵活性和易用性非常棒.JQuery以自己的方式在其内容中是自给自足的。所有实时应用程序都可以实现它们需要使用JQuery.Be和JQuery提供的大量库函数。



当我们要进行双向绑定时,JQuery缺少它。我们需要的一切do是仅通过手动注入。所以在JQuery旁边看到另一个库是Knockout.Knockout不是JQuery的替代品,但它为双向模型提供了一种方法无论你在UI中改变什么,都会反映在有关的模型对象中,这反过来又有助于反映页面上所有相同类型的模型绑定的变化。这就是为什么Knockout在开发人员中很受欢迎,因为它提供了自动注入更改用户制作。您将获得所有详细信息



http://knockoutjs.com/ [ ^ ]
JQuery is the best JS library in market today.The amount of flexibility and the easiness involved in implementing various functionalities are just awesome.JQuery in it's own way is self sufficient in it's content.All the real time applications can fulfill their requirement using vast stretch of library functions provided by JQuery.Be with JQuery.

When we are about to go for two way binding then JQuery lacks it.Everything we need to do is by manual injection only.So next to JQuery another library comes in sight is Knockout.Knockout is not a substitute for JQuery,but it provides a way for two way model binding.Whatever you will change in UI, will get reflected in concerned model object which in turn helps to reflect changes on all same type of model binding over the page.That's why Knockout is quite popular among developers,as it provides automatic injection of changes made by user.You will get all details from

http://knockoutjs.com/[^]


这篇关于哪种模板绑定适合将模型绑定到html页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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