摘要:
假设有如下代码: function A() {this.name = "A"} function B() {this.name = "B"} A.prototype.whatever = function() {/* some code */}; 这个时候要使 B 继承 A,用 B.prototype = new A(); B.prototype.constructor = B... 阅读全文
posted @ 2015-10-26 20:02
撞上安全岛
阅读(506)
评论(0)
推荐(0)
浙公网安备 33010602011771号