I'm just wondering which JavaScript library/toolkit works the best with ASP.NET MVC? Is it just a question of what the individual programmer prefers or is there actuall开发者_如何学JAVAy some benefits with some of the toolkits over the others?
jQuery works fantastically. See:
- What advantages does jQuery have over other JavaScript libraries?
- Microsoft AJAX client library vs jQuery
- Why is jQuery so widely adopted versus other Javascript frameworks?
- Integrating jQuery into an existing ASP.NET Web Application?
The toolkits that are included with the standard project within MVC are great. Probably JQuery is the preferred as it does give you an lot of control over the output (which is one of the selling points of MVC in the first place. JQueryUI gives some added bonuses on top of that as well.
Both JQuery and JQuery UI perform different tasks within the software develpment process. JQuery allows you to perform all of your custom requirements and scenarios. The UI is basically way of plugging in common functionality (i.e. a calendar date picker, etc). There is a little bit of crossover in places, but that's basically it.
You may find MS Ajax useful at times - but i'd just consider the frameworks on a problem-by-problem basis. Personally I prefer to 'default to JQuery' unless there is a compelling reason to re-evaluate what to use.
I'll echo what's been said, jQuery works well, but I would suggest looking at the other options just to be certain that in your specific case there isn't something out there that's more appropriate.
Check out the information here. It's a good starting point with additional links:
http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks
精彩评论