美文网首页
javascript框架

javascript框架

作者: 小寐一刻 | 来源:发表于2016-12-22 08:20 被阅读12次

    [TOC]

    underscore.js

    中文文档:http://www.css88.com/doc/underscore/
    Underscore提供的60多个函数:
    **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

    相关文章

      网友评论

          本文标题:javascript框架

          本文链接:https://www.haomeiwen.com/subject/gxucvttx.html