本文介绍: 本文将对 Node.js 源码进行探索,深入理解 cjs 模块加载过程。相信大家知道如何在 Node.js加载一个模块const fs = require(‘fs‘);const express = require(‘express‘);const anotherModule = require(‘./anothermodule‘);没错,require 就是加载 cjs 模块的 …

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注