摘要:
1.修改this的指向 题目: function () { var r = bindThis(function (a, b) { return this.test + a + b }, {test: 2} ) (2, 3); return r 7; } apply function bindThis 阅读全文
摘要:
共同父节点节点Dom查找 要求:查找两个节点的最近的一个共同父节点,可以包括节点自身 题目: function commonParentNode () { var parent = document.createElement('DIV'); var a = document.createEleme 阅读全文