【发布时间】:2013-05-04 20:24:53
【问题描述】:
我一直使用下划线作为静态集合。
underscore 函数有什么用途:
var _ = function(obj) {
if (obj instanceof _) return obj;
if (!(this instanceof _)) return new _(obj);
this._wrapped = obj;
};
你将如何使用它的一个例子是什么?
【问题讨论】:
-
真的很聪明的问题,认真的。