Helper functions & prototype methods to replace heavy frameworks?
All frameworks aside, what are some of the common helper functions/prototype methods you use on a daily basis?
Please note I am not arguing against frameworks. I've simply found that the majority of what I do on a daily basis can, most often, be done with a few dozen Array, String and Element.prototype methods. With the addition of a few helper functions like $ (getElementsById) and $$$ (getElementsByClass), I am able to satisfy some of the core benefits, however basic, of a much heavier framework.
If you were to collect a small library of basic methods and functions to replace the core functionality of some of the popular frameworks, what would they be?
From jQuery I would most miss selector functions, events, $.map
, $.each
, (my own) $.inject
, css
, data
, and val
.
Not sure much that's interesting is left after that, though.
链接地址: http://www.djcxy.com/p/94036.html下一篇: 帮助函数和原型方法来取代重型框架?