Will the choice between YUI or jQuery be the effect of over-designing .js files?

Will the choice between jquery or YUI change the overall / high level design of your .js files or will it be realistic only the internal workings of your js functions due to differences in the frame APIs? (e.g. how do you access the DOM, selectors, built-in functions, launch events, etc.).

+3
source share
4 answers

When you compare the structure of both libraries:

YUI:

YAHOO.util.Dom.setStyle(['test', 'test2'], 'opacity', 0.5); 
var opacity = YAHOO.util.Dom.getStyle('test2', 'opacity'); 

and jQuery:

$("#test, #test2").css("opacity", 0.5);
var opacity = $("#test2").css("opacity");

They look pretty similar.

Thus, the overall flow of the script should be approximately the same with both libraries.

, , . , jQuery , , , .

+5

YUI jQuery. , Google Web Toolkit (GWT) Dojo, , , - .

, YUI jQuery , . jQuery , Perl. , , . YUI , , .

, Yahoo! YUI jQuery ;)

+2

, yui, yui3, . yui, , , .

, , .

+2

jQuery YUI, .

0

Source: https://habr.com/ru/post/1702326/


All Articles