Silverlight和AJAX会扮演互补的角色,还是会取代另一个? [英] Do Silverlight and AJAX play complementary roles or will one replace the other?

查看:47
本文介绍了Silverlight和AJAX会扮演互补的角色,还是会取代另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AJAX是一件大事……但是(对我而言)似乎在Silverlight 4中,Microsoft提供了一种非常健壮的方法来为Web创建UI界面.我想知道-AJAX的未来是什么?AJAX和Silverlight会互补吗?还是Silverlight会替换AJAX等?

AJAX is the big thing...but it seems (to me) that with Silverlight 4 Microsoft has offered a really robust method for creating UI interfaces for the web. I'm wondering - what is the future of AJAX? Do AJAX and Silverlight complement each other or will Silverlight replace AJAX, etc.?

推荐答案

Silverlight和AJAX是用于不同作业的不同工具.在继续之前,请允许我澄清一下在这种情况下AJAX的含义.AJAX是一种使用Javascript,HTML和CSS来构建基于浏览器的丰富应用程序的方法,而无需依赖其他浏览器扩展.

Silverlight and AJAX are different tools for different jobs. Before I go any further, let me just clarify what I mean by AJAX in this context. AJAX is a way to build rich browser based application by using Javascript, HTML and CSS without relying on other browser extensions.

在HTML5功能开始泄漏到主要浏览器之前,功能上的差距已经相当大,但是对于本机浏览器视频和画布渲染,情况并非如此.

Before HTML5 features started leaking into major browsers the gap in functionality was quite wide, but with native browser video and canvas rendering, it is not quite the case.

  • Silverlight仍然是一个可以使用的更丰富的框架,并提供了不同的沙盒模型,以减少对计算机的限制访问.
  • 另一个优点是C#代码已编译,因此有可能变得更快.再次强调,现在Javascript运行时越来越快不再是一个问题了.
  • 由于所有浏览器的布局系统都相同,因此您可以提供更好的体验保证.您无需花费数小时来调试不同浏览器之间的10px对齐问题.
  • Silverlight is still a richer framework to work with and offers different sandboxing models to allow less restricted access to the computer.
  • Another advantage is that the C# code is compiled and thus has the potential to be faster. Again, this is less of an issue now with Javascript runtime getting faster and faster.
  • Because the layout system will be the same on all browsers you can give a better experience guarantee. You won't need to spend hours debugging a 10px alignment issue between different browsers.

也就是说,在开发Web应用程序时,我会尽量避免使用AJAX.它非常强大,无需插件即可实现非常丰富的功能.如果您的应用程序是标准业务应用程序,那么作为用户,如果您让我安装插件只是为了向我展示一些网格,按钮和表单,我可能会对您感到恼火.

That said, in developing a web app I would try to get away with AJAX as much as I can. It's pretty powerful and you can achieve very rich functionality without requiring a plugin. If your application is a standard line of business app, then I, as a user, will probably get angry with you if you made me install a plugin just to show me some grids and buttons and forms.

如今,选择如何开发和部署Web应用程序变得越来越困难.随着移动平台的出现,您必须非常小心.到目前为止,坚持使用HTML5似乎是最好的选择,因为iPhone和iPad将永远不支持Silverlight.同样,我怀疑Android和ChromeOS是否会在不久的将来这样做.

Choosing how to develop and deploy your web app is becoming increasingly difficult these days. With the advent of mobile platforms, you have to tread very carefully. Sticking to HTML5 seems the best option so far, knowing that iPhone and iPad will never support Silverlight. Similarly I doubt Android and ChromeOS will do so in near future.

这篇关于Silverlight和AJAX会扮演互补的角色,还是会取代另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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