Sys.require、ASP.NET AJAX 加载器脚本的未来是什么?
有谁知道这个脚本是否会继续有未来,或者它是否已经被另一个组件取代?我经常使用它的功能,并且想知道是否有更好的替代方案或者它的未来会怎样......
为了澄清,我正在谈论 start.js 中的异步加载器功能。
Does anyone know if this script will continue to have a future or is it DOA and being replaced by another component? I use its functionality a lot and would like to know if there is a better alternative or what the future holds for it...
To clarify, I'm talking about the async loader features in start.js.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
ASP.NET Ajax 库(不要与 ASP.NET AJAX 混淆)都没有正式发布,并且在完成之前就停止了开发。你不应该使用它。我写了一篇关于这个主题的文章。
Microsoft 的同一个团队还制作了一个新的脚本加载器 DeferJS,它是 Sys.require 的下一个逻辑演变。您可以在这里找到它的最新版本:https://github.com/BorisMoore/JsDefer
None of the ASP.NET Ajax Library (not to be confused with ASP.NET AJAX) was officially released and development on it ceased before it was complete. You shouldn't use it. I've wrote an article on the subject.
The same team at Microsoft has produced a new script loader, DeferJS, which is the next logical evolution of Sys.require. You can find the latest version of it here: https://github.com/BorisMoore/JsDefer
sys.require 不会有任何进一步的开发,但现有的脚本和服务不会消失。 Microsoft 已采取大量措施来保持与其旧技术的向后兼容性,因此没有理由认为您现在正在使用的功能会在不久的将来的某个时候突然停止工作。
微软似乎正朝着与开源 jQuery 库集成的方向发展。这是一篇关于它的博客文章: http:// weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx。 jQuery 非常强大且灵活,并且具有内置支持以及大量 AJAX 插件。
There's not going to be any further development on sys.require, but the existing scripts and services will not disappear. Microsoft has taken considerable measures to maintain backwards compatibility with its older technologies, so there's no reason to think that what you have working now will suddenly stop working at some point in the near future.
Microsoft seems to be going in the direction of integrating with the open source jQuery library. Here's a blog post about it: http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx. jQuery is very powerful and flexible, and has both built in support as well as a plethora of plugins for AJAX.
还有 RequireJS (http://requirejs.org/),它相当成熟,并且更容易使用。它不是来自 Mircosoft,但可能值得一看。
There's also RequireJS (http://requirejs.org/), which is quite mature, and somewhat easier to use. It's not from Mircosoft, but it may be worth a look.
也许你可以尝试一下
它是一个可扩展的资源加载器,并且它可以进行依赖项跟踪。
May be you can try this
it is an extensible resource loader, and it does dependencies tracking.