没有合适的资源?快使用搜索试试~ 我知道了~
好消息来了,微软开发出了这样的框架,这是对jQuery的一个扩展,从此以后要在浏览器上动态显示服务器端Web Service返回的数据将变得如同用服务器端控件显示数据一样容易。 这个技术就叫jQuery templates and data linking ,这是微软对jQuery做的一个扩展。这种扩展需要jQuery官方的审核,然后才能被包含在jQuery中。据ScottGu的博客上说,此扩展正在等待审核阶段。但是这些功能却是非常强大而且实用,我就先把它转过来了,先睹为快。 在编写AJAX应用时,经常需要利用JavaScript在页面上显示数据,jQuery模板(jQuery Templa
资源推荐
资源详情
资源评论
jQuery模板技术和数据绑定实现代码模板技术和数据绑定实现代码
好消息来了,微软开发出了这样的框架,这是对jQuery的一个扩展,从此以后要在浏览器上动态显示服务器端Web Service返
回的数据将变得如同用服务器端控件显示数据一样容易。
这个技术就叫jQuery templates and data linking ,这是微软对jQuery做的一个扩展。这种扩展需要jQuery官方的审核,然后才
能被包含在jQuery中。据ScottGu的博客上说,此扩展正在等待审核阶段。但是这些功能却是非常强大而且实用,我就先把它
转过来了,先睹为快。
在编写AJAX应用时,经常需要利用JavaScript在页面上显示数据,jQuery模板(jQuery Templates)和数据绑定(Data
Linking)提供了一种方便的途径将JavaScript数据显示在HTML页面上,数据可以呈现为各种元素,如普通文本、TextBox、
列表等。Data Linking这个单词直译应该作数据链接,但是我觉得数据绑定这个词更加能够反映这种技术的能容,而且符合
ASP.NET习惯用法。在Scott Guthrie的博客中也这样说,原来他们也想称这种技术为data binding而不是data linking,但是由
于jQuery中已经有binding这个术语了,指的是另外的东西,为了不至于引起混淆,所以就只好另外给它起个名字,叫data
linking了。
我下面把这个博客转过来,有时间则翻译一下。
以下全文引用自ScottGu的博客。
jQuery Templates and Data Linking (and Microsoft contributing to jQuery)
The jQuery library has a passionate community of developers, and it is now the most widely used JavaScript library on the
web today.
Two years ago I announced that Microsoft would begin offering product support for jQuery, and that we’d be including it in
new versions of Visual Studio going forward. By default, when you create new ASP.NET Web Forms and ASP.NET MVC
projects with VS 2010 you’ll find jQuery automatically added to your project.
A few weeks ago during my second keynote at the MIX 2010 conference I announced that Microsoft would also begin
contributing to the jQuery project. During the talk, John Resig — the creator of the jQuery library and leader of the jQuery
developer team – talked a little about our participation and discussed an early prototype of a new client templating API for
jQuery.
In this blog post, I’m going to talk a little about how my team is starting to contribute to the jQuery project, and discuss some
of the specific features that we are working on such as client-side templating and data linking (data-binding).
Contributing to jQuery
jQuery has a fantastic developer community, and a very open way to propose suggestions and make contributions.
Microsoft is following the same process to contribute to jQuery as any other member of the community.
As an example, when working with the jQuery community to improve support for templating to jQuery my team followed the
following steps:
We created a proposal for templating and posted the proposal to the jQuery developer forum
(http://forum.jquery.com/topic/jquery-templates-proposal and http://forum.jquery.com/topic/templating-syntax ).
After receiving feedback on the forums, the jQuery team created a prototype for templating and posted the prototype at the
Github code repository (http://github.com/jquery/jquery-tmpl ).
资源评论
weixin_38727694
- 粉丝: 4
- 资源: 947
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功