0

有没有办法在运行时获取 MarionetteJS 版本?

运行时我的意思是

 
console.log(Backbone.VERSION);
// or
console.log(_.VERSION);
// or
console.log(jQuery.fn.jquery); // well, this is a weird one...

我搜索了 API,但找不到任何类似的东西

4

2 回答 2

1

有一个全局变量:

Marionette.VERSION // "2.0.3"
于 2014-08-07T10:04:38.513 回答
1

如果您查看源代码并搜索版本号 (1.0.2),则唯一出现在文件顶部的注释中。

所以看起来版本号在 MarionetteJS 中不可用。

于 2013-05-05T07:17:06.590 回答