Skip to content

Properties (属性)

_.VERSION

(string)

语义化版本号。

_.templateSettings

(Object)

默认情况下,lodash 使用的模板分隔符类似于嵌入式 Ruby (ERB) 以及 ES2015 模板字符串。修改以下模板设置以使用替代的分隔符。

_.templateSettings.escape

(RegExp)

用于检测需要进行 HTML 转义的数据属性值。

_.templateSettings.evaluate

(RegExp)

用于检测需要执行的代码。

_.templateSettings.imports

(Object)

用于将变量导入到编译后的模板中。

_.templateSettings.interpolate

(RegExp)

用于检测要注入的数据属性值。

_.templateSettings.variable

(string)

用于在模板文本中引用数据对象。