Skip to content

noConflict

js
_.noConflict()

_ 变量恢复为其先前的值并返回对 lodash 函数的引用。

¥Reverts the _ variable to its previous value and returns a reference to the lodash function.

新增于

¥Since

0.1.0

返回

¥Returns

(函数):返回 lodash 函数。

¥(Function): Returns the lodash function.

示例

¥Example

js
var lodash = _.noConflict();

Lodash v4.17 中文网 - 粤ICP备13048890号