简中文档

single-var-declarator

不允许在同一声明语句中定义多个变量。

无效:

const foo = 1, bar = "2";

有效:

const foo = 1;
const bar = "2";

你找到了你需要的东西吗?

编辑此页面
隐私政策