📌  相关文章
📜  无法在 console.log 的模块外使用 import 语句 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.030000             🧑  作者: Mango

代码示例1
//method of exporting variables, contants and...
export const greetings = "Hi"; //saved as ex1.js

import {greetings} from "[specify path]/JavaScript Exercises/ex1.js"; //saved as mod.js