【发布时间】:2020-07-23 12:49:09
【问题描述】:
我有这个示例文件(example.json):
{"test": {"name": "testName"}}
然后,在我的 js 文件中,我像这样导入:
import testJson from "./example.json"
当我输入时:
testJson.
我希望建议出现在 IDE 中(最好在 VS Code 中)。
我怎样才能做到这一点?
【问题讨论】:
标签: javascript json ecmascript-6 import