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