zoukankan      html  css  js  c++  java
  • underscore概况

    看的是1.3.3,这个版本的中文源码解释比较多。

    函数的中文注释:http://www.css88.com/doc/underscore1.5.2/#difference

    源码的中文注释:http://www.cnblogs.com/xuwenmin888/archive/2013/05/27/3101451.html

    underscore:collections(20);arrays(15); function(12);objects(28); utility(10); chaining(2)

    有些方法会涉及到原型链,有些不会,总结一下:

    values:不包含prototype

    keys:不包含prototype

    each:不会遍历prototype的function

    functions:包含prototype的function

    extend:包含prototype的属性

    for in:本身,prototype

    has:是否属于本身,而不是prototype

    认真看看js array支持的方法。

    最新版是1.8.3:http://underscorejs.org/

    内部调用的函数不用加_.,如each和eq

    比较麻烦的是trottle,debound,eq,template,以后再看。

    学习时参考的链接

    有注释的源码:http://www.css88.com/doc/underscore/docs/underscore.html

    函数的解释:http://www.css88.com/doc/underscore1.5.2/#mixin

    源码笔记:http://www.cnblogs.com/xuwenmin888/archive/2013/05/27/3101451.html

    underscore入门总结:http://www.css88.com/archives/4728

    1.8.3:http://www.css88.com/doc/underscore/

  • 相关阅读:
    vue中 根据音频 获取音频的时长
    获取dom位置信息
    react笔记
    Git 基础命令
    vue 笔记
    倒计时
    删留言
    python 类之类变量与实例变量
    python 类的定义
    python 列表推导式
  • 原文地址:https://www.cnblogs.com/wang-jing/p/4737588.html
Copyright © 2011-2022 走看看