简体   繁体   English

ASP.NET中的ExtJS和jQuery

[英]ExtJS and jQuery in ASP.NET

I've seen some posts where jQuery has been favored vs ExtJS. 我见过一些帖子,其中jQuery受到了人们对ExtJS的青睐。 I haven't looked at jQuery in detail, but from what I read so far, jQuery doesn't provide the kind of UI which comes with ExtJS. 我没有详细介绍过jQuery,但从我到目前为止所读到的内容来看,jQuery并没有提供ExtJS附带的UI。 Am I correct? 我对么? Why would some of you prefer jQuery in ASP.NET? 为什么有些人更喜欢ASP.NET中的jQuery?

Thanks 谢谢

Why not use both? 为什么不同时使用? ExtJS does allow you to use jQuery as well. ExtJS也允许你使用jQuery。 In fact, you can easily configure ExtJS to use jQuery for its core functionality. 实际上,您可以轻松配置ExtJS以使用jQuery作为其核心功能。 I've done this before and it works quite well. 我以前做过这个,效果很好。

This way you can happily use the best of both worlds. 通过这种方式,您可以愉快地使用两全其美。

http://extjs.com/forum/showthread.php?t=29702&highlight=jquery http://extjs.com/forum/showthread.php?t=29702&highlight=jquery

There are two schools of javascript frameworks, ones that focus on widgets (Yui, ext, etc) , and ones that focus on behavior (jquery, prototype, moo, etc) 有两个javascript框架学校,一个专注于小部件(Yui,ext等),另一个专注于行为(jquery,prototype,moo等)

JQuery just makes life easier to build dynamic, sexy sites. JQuery让生活更轻松,构建动态,性感的网站。 If you are just doing system.draggy.droppy asp development, you can ignore both, since you probably aren't really touching javascript at all. 如果你只是在做system.draggy.droppy asp开发,你可以忽略它们,因为你可能根本就没有真正触及javascript。 But if you do use javascript, it is worth your time to learn one of the frameworks that are out there, and jquery is currently the most popular. 但是如果你使用javascript,那么值得花时间学习其中的一个框架,而jquery是目前最受欢迎的框架。

In fact Ext provides a one-stop-shop. 事实上,Ext提供一站式服务。

It has a solid foundation which provides behaviour. 它有坚实的基础,提供行为。 Event pub/sub, effects, DOM manipulation etc. And it can provide these through its own standalone foundation, OR by wrapping a foundation library of your choice (like jQuery) 事件发布/发布,效果,DOM操作等。它可以通过自己的独立基础提供这些,或者通过包装您选择的基础库(如jQuery)

And then on TOP of that cross-library foundation layer, it provides a unified set of Components all stemming from one Component base class. 然后在该跨库基础层的TOP上,它提供了一组统一的组件,这些组件都来自一个Component基类。 It provides managed screen layout which responds to browser geometry changes, and managed lifecycle management of the Components. 它提供托管屏幕布局,响应浏览器几何变化,并管理组件的生命周期管理。

There's nothing out there like it. 那里什么都没有。

jQuery does have a widgets library - it's fairly new, but pretty cool. jQuery确实有一个小部件库 - 它相当新,但非常酷。 It can only get better! 它只会变得更好! jQuery UI jQuery UI

iam experienced on extjs and fresher for jquery.jquery is very light weight than extjs. 对于jquery.jquery来说,我在extjs和fresher上经历的体重比extjs轻得多。

About JQUERY: 关于JQUERY:

easy to use, fast, great DOM manipulation, good effects. 易于使用,快速,伟大的DOM操作,良好的效果。 Great window.onLoad handler. 伟大的window.onLoad处理程序。

About EXTJS: 关于EXTJS:

Ivery very extensive, great DOM manipulation, solid effects. 非常广泛,伟大的DOM操作,固体效果。 The fastest to get things done when puzzling out on the commandline. 在命令行困惑时最快完成任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM