JS实现链式调用 a().b().c()

时间:2023-03-10 06:49:43
JS实现链式调用 a().b().c()
function a() {
this.b = function () {
console.log('111')
return this
}
this.c = function () {
console.log('111')
return this
}
return this
} a().b().c()

相关文章