Ask how to write a native js plug-in that supports the cmd,amd,commonjs specification

ask how to write a native js plug-in that supports the cmd,amd,commonjs specification

Feb.28,2021

just find a plug-in to copy the first few lines.
vue:

(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
        typeof define === 'function' && define.amd ? define(factory) :
            (global.Vue = factory());
}(this, (function () {
    'use strict';

    var plugin = function () {
        console.log(1);
    }

    return plugin;
})));

https://github.com/egoist/bili

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31019-2bd4f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31019-2bd4f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?