错题集
1、reference type
const obj = {
msg: 'BFE',
foo() {
console.log(this.msg)
},
bar() {
console.log('dev')
}
}
obj.foo();
(obj.foo)();
(obj.foo || obj.bar)();
2023-11-28 10:30:16
const obj = {
msg: 'BFE',
foo() {
console.log(this.msg)
},
bar() {
console.log('dev')
}
}
obj.foo();
(obj.foo)();
(obj.foo || obj.bar)();
下一篇:C++小型内存池实现