(function(global, factory) {
//CommonJS/Node
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
//AMD
typeof define === 'function' && define.amd ? define(factory) :
//No module loader
(global.VueEvent = factory());
}(this, (function() {
function VueEvent(Vue){
//code.....
}
// if the script is being run in a web-browser
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(VueEvent);
}
return VueEvent;
})));
兼容CommonJS
最新推荐文章于 2022-09-22 13:32:25 发布