📅  最后修改于: 2022-03-11 14:55:21.703000             🧑  作者: Mango
One of the major differences between require() and import() is that require() can be called from anywhere inside the program whereas import() cannot be called conditionally, it always runs at the beginning of the file.