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/

  • 相关阅读:
    java JSONObject
    android 8.0 悬浮窗 最简demo
    使用adb 命令(atrace)抓起systrace的方法。
    使用python处理selenium中的获取元素属性
    使用adb/Linux获取网关ip
    Requests text乱码
    python-uiautomator2
    adb命令 判断锁屏
    缓存穿透、缓存击穿与缓存雪崩
    ReentrantLock重入锁详解
  • 原文地址:https://www.cnblogs.com/wang-jing/p/4737588.html
Copyright © 2011-2022 走看看