1 function inherit(subClass,supperClass){ 2 function temp(){}; 3 temp.prototype = supperClass.prototype; 4 subClass.prototype = new temp(); 5 subClass.prototype.constructor = cubClass; 6 }
posted on 2013-04-08 20:49 罪恶 阅读(128) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 罪恶 Powered by .NET 9.0 on Kubernetes