下面的代码有效,但我的直觉告诉我这不是最简洁的方法。我想使用this.function2()而不是videoControler.function2(),但这不起作用。这是写这个的最好方法吗?
const myController = {
function1() {
return res.json({
blah: myController.function2()
})
},
function2() {
return "blah"
}
}
千巷猫影
函数式编程
慕神8447489
随时随地看视频慕课网APP
相关分类