我是一个HTML/CSS/PHP/MYSQL程序员,现在正在尝试学习一些javascript.我是通过挖掘我正在使用的网络邮件代码(开源)并试图了解它是如何工作的.我试图理解如何加载页面的不同部分(没有页面重新加载,你会得到PHP).如果我没错,那就是使用webpack来做到这一点.如果我没有错,页面的每个部分都作为模块加载.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, …Run Code Online (Sandbox Code Playgroud)