NodeJs and export of Module.export

NodeJs of Module.export and export the same.

However Module.export = {. . . . } Can onset, .export = {. . . . } Are disabled.

Shorthand here is not Module.export export, and second, one of his references.

It can be considered:

let export =Module.export;

Then the property of the export assignment, or add a property will affect the Module.export.

However, export = {. . }, But will not change the value of Module.export.

Guess you like

Origin www.cnblogs.com/qgbo/p/11655068.html
Recommended