我遇到了这个源代码。 我不明白的第一行:在ES6中进行导入
import type { a, b, c, d } from 'types'
有什么用
import { a, b, c, d } from 'types'
的差别,你能解释一下?由于
import type { a, b, c, d } from 'types'// not sure what it does
import { a, b, c, d } from 'types' // I am familar with this
单词'type'后面是否有逗号? –
不,没有逗号,代码按预期工作,逗号的缺失实际上令我困惑 – Radex
代码使用流式 – Radex