jdc*_*589 8 javascript standards cross-browser
显然我已经失去了所有的谷歌技能.对于尝试跨浏览器标准化javascript并提供小的增强功能的javascript库,我找不到任何好的结果.
我不是在寻找像jQuery,Prototype等完整的框架......即使他们在某种程度上做了这种类型的事情.我只谈论语言/可用功能标准化,没有DOM的东西.只是一个很好的跨浏览器库,可以确保所有标准内容的可用性(数组映射,减少等等),支持IE 6/7/8中的Date.toISOString()之类的内容......我已经知道了ie7.js,ie8.js和ie9.js,但它们并不完全符合法案.
那还有什么呢?
更新 只是要清楚,这是图书馆所做的事情类型(所有的crossbrowser,显然有本地回退):
Mrc*_*ief 11
我发现UnderscoreJS对于循环/排序/查询,数组操作,map/reduce等非常有用:
它没有与日期时间相关的功能.对于datetime解析,有dateJS
数组扩展(LastElement、InsertAt、InsertRange、Remove、RemoveAt、RemoveRange、Clear、Contains、Equals、Copy、Append、Merge、Search、Filter):http: //programmingsolution.net/post/JavaScript-Array-Extension.aspx
数组扩展:(copy、forEach、find、findAll、contains、distinct、min、max、first、last、sortAscending、sortDescending、randomize、count、 except、intersect、average、sum、union、safePush、getRandom、insertAt、remove) :http ://www.thegrubbsian.com/2009/01/25/useful-javascript-extensions
日期对象扩展- datejs.js: (today, Compare, Between, CompareTo, equals, isAFter, isBefore, isLeapYear, parse, parseExact, validateDay, validateHour, validateMonth, validateMinute, validateSecond, validateYear, add, addSeconds, addMinutes, addHours, addDays 、addYears、addWeeks、addMonths、clone、getWeek、getISOWeek、setWeek、toISOString):http: //code.google.com/p/datejs/wiki/APIDocumentation
复制、deepCopy、克隆- http://oranlooney.com/deep-copy-javascript/