var _ = function (obj) { if(obj instanceof _) { return obj; } if(!(this instanceof _)){ return new _(obj); } this._wrapped = obj;};var cd = function (value, context, argCount) { if(value == null) { return _.identity; }}cd變量里(_.identity)是什么意思沒(méi)看懂,求大神指教。
關(guān)于對(duì)象問(wèn)題,underscore.js 原碼
不負(fù)相思意
2018-10-12 14:10:13