小而精,小而美的一款开源的迷你框架Underscore.js
2015-08-29 17:26
706 查看
Underscore提供的60多个函数:
http://www.css88.com/doc/underscore/
Collections(集合)
each, map, reduce, reduceRight, find, filter, reject, all, any, include, invoke,pluck, max, min, sortBy, groupBy, sortedIndex, shuffle, toArray, size
Arrays(数组)
first, initial, last, rest, compact, flatten, without, union, intersection,difference, uniq, zip, indexOf, lastIndexOf, range
Functions(函数)
bind, bindAll, memoize, delay, defer, throttle, debounce, once, after, wrap,compose
Objects(对象)
keys, values, functions, extend, defaults, clone, tap, isEqual, isEmpty,isElement, isArray, isArguments, isFunction, isString, isNumber, isBoolean,isDate, isRegExp, isNaN, isNull, isUndefined
Utility(功能)
noConflict, identity, times, mixin, uniqueId, escape, template
Chaining
chain, value
http://www.css88.com/doc/underscore/
Collections(集合)
each, map, reduce, reduceRight, find, filter, reject, all, any, include, invoke,pluck, max, min, sortBy, groupBy, sortedIndex, shuffle, toArray, size
Arrays(数组)
first, initial, last, rest, compact, flatten, without, union, intersection,difference, uniq, zip, indexOf, lastIndexOf, range
Functions(函数)
bind, bindAll, memoize, delay, defer, throttle, debounce, once, after, wrap,compose
Objects(对象)
keys, values, functions, extend, defaults, clone, tap, isEqual, isEmpty,isElement, isArray, isArguments, isFunction, isString, isNumber, isBoolean,isDate, isRegExp, isNaN, isNull, isUndefined
Utility(功能)
noConflict, identity, times, mixin, uniqueId, escape, template
Chaining
chain, value
相关文章推荐
- 【线段树】【JSOI 2008】【bzoj 1012】最大数maxnumber
- 选择使用 Sugar.js 还是 Underscore.js ?
- JavaScript 设计模式之----单体(单例)模式
- JavaScript 设计模式之----单体(单例)模式
- js的replaceAll() (转)
- javascript div动态大小改变
- Javascript高级程序设计——javascript简介
- JSOI2007 麻将 题解
- js实现基于正则表达式的轻量提示插件
- js中数字类型数组排序
- JavaScript的超时调用和间歇调用
- js SyntaxError: unterminated string literal
- js精美的幻灯片画集特效代码分享
- JS代码墙
- JS中Location的使用
- Servlet 与 JSP 核心编程
- JavaScript学习笔记2-附录(JavaScript中的内置对象)
- JavaScript 面向对象继承详解
- Libraries: Performance vs. Native JS
- JavaScript学习笔记2-附录(转自w3cschool)