var o = { a: function(){ console.log("a") return this }, b: function(){ console.log("b") }, c: { d: function(){ b() // 報錯 console.log("c") return this } } }如何在 d 中使用 b 方法?
關于 this 獲取當前對象父類的方法。
炎炎設計
2018-12-19 18:18:47