_.VERSION
(字符串):语义版本号。 source
_.templateSettings
(Object):默认情况下,lodash 使用的模板分隔符类似于嵌入式 Ruby (ERB) 以及 ES2015 模板字符串中的分隔符。 更改以下模板设置以使用替代分隔符。 source / npm package
_.templateSettings.escape
(RegExp):用于检测要被 HTML 转义的 data
属性值。
source
_.templateSettings.evaluate
(RegExp):用于检测要评估的代码。 source
_.templateSettings.imports
(Object):用于将变量导入到编译后的模板中。 source
_.templateSettings.interpolate
(RegExp):用于检测要注入的 data
属性值。
source
_.templateSettings.variable
(string):用于引用模板文本中的数据对象。 source