.MJS 文件扩展名

Node.js ES Module File

开发者 不适用
受欢迎程度
4.2  |  20 
 

什么是 MJS 文件?

An MJS file is a source code file containing an ES Module (ECMAScript Module) for use with a Node.js application. MJS files are written in JavaScript, and may also use the .JS extension outside of the Node.js context. ES Modules allow web and application developers to organize code into smaller reusable components.

更多信息

ECMAScript 6 (ES6) introduced the specification for ES Modules, providing a standard for implementing modules in JavaScript. As of 2018, all major web browsers support ES Modules.

However, the popularity of modularized JavaScript pre-dates ES6. Node.js, a JavaScript runtime environment, used CommonJS as the specification for modules. Because so many existing applications were built with CommonJS, when Node.js added support for native ES modules, it controversially introduced the MJS file extension to differentiate the two and prevent applications from breaking.

注: Some developers informally refer to MJS files as "Michael Jackson Script" files.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 MJS 文件的程序

Windows
免费
免费试用
免费
免费
Mac
免费
免费试用
免费
免费
Linux
分类: 网页
更新时间: 2018-11-08

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Node.js ES Module 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们