开发者

as more browsers become standards compliant is there less of a value of things like jquery

开发者 https://www.devze.com 2022-12-27 20:45 出处:网络
if one of the main benefits of jquery is cross browser javascript support, does that become less valuab开发者_StackOverflowle as more browsers aim to become standards compliant and the same javascript

if one of the main benefits of jquery is cross browser javascript support, does that become less valuab开发者_StackOverflowle as more browsers aim to become standards compliant and the same javascript works on all browsers?


jQuery is more than just a simple abstraction of basic browser APIs, it also provides a nice libary of helpful functions like animate(), and nice framework for making reusable components. So I think it will remain useful for a long time.


No. For one somehow the browsers end up supporting different standards, and there are always things only being added to the standards. Then there's backward compatibility: granted IE6 is mostly RIP, but 7 and 8 are here for a while. And finally, (some) js frameworks are as much about ease of use as useful components, and I have to second NXT on that.


At the very least, there's a rich library of plugins that would take forever to re-create without jQuery.


Also, jQuery has its own style. I kind of like this almost declarative programming using the css selectors with autoprocessing of list, like

$(".button").roundedCorners().click(function(){
  addToMyDisplayDiv($(this).attr("buttonValue");
});

and will use even if all browsers one day concur :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消