摘要: 有父子两个函数,代表两个类: var parent = function(){} var child = function(){} 一、直接继承 child.prototype = new parent(); child.prototype.constructor = child; 这种方式有风险, 阅读全文
posted @ 2019-09-17 16:11 liujiekun 阅读(508) 评论(0) 推荐(0) 编辑