有没有办法在运行时获取 MarionetteJS 版本?
运行时我的意思是
console.log(Backbone.VERSION);
// or
console.log(_.VERSION);
// or
console.log(jQuery.fn.jquery); // well, this is a weird one...
我搜索了 API,但找不到任何类似的东西
有没有办法在运行时获取 MarionetteJS 版本?
运行时我的意思是
console.log(Backbone.VERSION);
// or
console.log(_.VERSION);
// or
console.log(jQuery.fn.jquery); // well, this is a weird one...
我搜索了 API,但找不到任何类似的东西
有一个全局变量:
Marionette.VERSION // "2.0.3"
如果您查看源代码并搜索版本号 (1.0.2),则唯一出现在文件顶部的注释中。
所以看起来版本号在 MarionetteJS 中不可用。