• CommonJs: Node.js
    • AMD: require.js
    • CMD: sea.js
    • ES6 ```javascript { // 导出 export let A = 123; export function test() {
      1. console.log("test");
      } export class Hello {
      1. test() {
      2. console.log("class");
      3. }
      } }

    { let A = 123; let test = function () { console.log(“test”); }; class Hello { test() { console.log(“class”); } }

    1. export default {
    2. A,
    3. test,
    4. Hello,
    5. };

    }

    // 小技巧 // import * as modules from “../../xxx” // console.log(moudlex.xxx);

    ```