Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
面对众多Ajax框架,我们该如何选择呢?
redouble
follow
0
3-26-2009 11:26 PM
68 views
tags:
ajax
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Woman Swallowed Whole by Leopard
I Think Somebody Is Confused
Women in Art
Santa May Run Out of Reindeer
Woman sold in public auction in Pakistan -- for $3,200
25 Holiday Wallpapers from Abduzeedo
Support the Troops!
While we get out our cookie cutters, they endure 'clit' cutting
A hero-surgeon
Beautiful Wish Flowers
visit the
Top Clips page
View the Top Clips from
March 26, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/b7bf3a03-c5bc-41e9-98bd-23094f19418b/DB31412B-A43E-4AF0-9D95-6BA2FEA5B8DB/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://tech.it168.com/j/n/2007-07-04/200707041059187_3.shtml" href="http://tech.it168.com/j/n/2007-07-04/200707041059187_3.shtml" style="font-size: 11px;">tech.it168.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://tech.it168.com/j/n/2007-07-04/200707041059187_3.shtml"><DIV><FONT size="2">如果读者非常想了解应用程序每行代码的运行情况,那么通过直接调用XHLHttpRequest是最好的办法。但如果想把客户端的JavaScript代码开发人员与服务器端的开发人员进行有效的分离,那么使用Ajax库是最好的选择。<BR /></FONT></DIV> <DIV><FONT size="2">下表是笔者对各种Ajax库及其应用场合的总结,希望对读者在众多的Ajax库中选择出适合自己项目的库。</FONT></DIV> <DIV align="center"><FONT size="2">表2.各种Ajax库的应用范围</FONT></DIV> <TABLE cellspacing="0" cellpadding="0" border="1"><TBODY><TR><TD width="187" valign="top"><DIV><FONT size="2">Ajax库</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">应用范围</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">Dojo</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2"><SPAN>1.<SPAN> </SPAN></SPAN>适合于客户端开发人员,希望在客户端与浏览器的DOM之间建立一个强健的抽象层。</FONT></DIV> <DIV><FONT size="2"><SPAN>2.<SPAN> </SPAN></SPAN>适合于客户端开发人员,想使用最少的代码取得最令人难忘的页面效果。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">Prototype</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2"><SPAN>1.<SPAN> </SPAN></SPAN>客户端开发人员,并想将客户端与浏览器的DOM之间的抽象层最小化。</FONT></DIV> <DIV><FONT size="2"><SPAN>2.<SPAN> </SPAN></SPAN>客户端开发人员,通过使用某个库来加速普通DOM操作任务的开发。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">Direct Web Remoting(DWR)</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">适用于Java开发人员,能快速的建立并运行Ajax功能。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">Google Web Toolkit(GWT)</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">适合Java开发人员,能得到一个强健且易于调试的环境,但需要花费比较多的时间。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">ASP.NET AJAX Extensions(“Atlas”)</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">适用于ASP.NET开发人员,通过服务器端组件来创建Ajax功能,而无需编写JavaScript代码。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">AjaxPro</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">适用于ASP.NET开发人员,用来创建充分的客户端用户体验,只是非常有限的使用服务器端的API调用以获取或发送数据。</FONT></DIV> </TD></TR><TR><TD width="187" valign="top"><DIV><FONT size="2">xAjax</FONT></DIV> </TD><TD width="381" valign="top"><DIV><FONT size="2">PHP开发人员</FONT></DIV> </TD></TR></TBODY></TABLE><DIV><FONT size="2"> </FONT></DIV> <DIV><FONT size="2">当然,开发人员可以混合使用以上各种库,也不失为一种明智的选择。例如,可以使用Dojo来创建非常丰富多彩的客户端功能,同时又可使用DWR来处理Ajax功能。这都是可以联合使用,以充分发挥Ajax的强大功能</FONT></DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/DB31412B-A43E-4AF0-9D95-6BA2FEA5B8DB/blog/" title="blog or email this clip"><img src="http://content9.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK