• 周四. 12 月 12th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

[JavaScript]UMD模块

admin

11 月 28, 2021
(function umd(root, factory) {
    if (typeof module === 'object' && typeof exports === 'object')
        module.exports = factory()
    else if (typeof define === 'function' && define.amd)
        define([], factory)
    else
        root.CustomFuc = factory()
})(this, function factory() {

    var CustomFuc = {};



    
    return CustomFuc;
});

发表回复