其它语句
小于 1 分钟
with
with
混淆指定代码块的作用域指向。
const user = {
name: "张三"
};
with (user) {
//使用 user 混淆作用域,这里的 name 会被理解为 user.name
console.log(name);
}
with
混淆指定代码块的作用域指向。
const user = {
name: "张三"
};
with (user) {
//使用 user 混淆作用域,这里的 name 会被理解为 user.name
console.log(name);
}