/// <class>继承Array类 </class> 
HotelInfoSet = function(){ 
  Array.apply(this); 
} HotelInfoSet.prototype = new Array(); HotelInfoSet.prototype.count = function(){ 
  return this.length; 
} HotelInfoSet.prototype.add = function(hotelInfo){ 
  return this.push(hotelInfo); 
} HotelInfoSet.prototype.AddRange = function(hotelInfoSet){ 
  this.concat(hotelInfoSet); 
} var hotelInfoSet = new HotelInfoSet(); 
hotelInfoSet.add("aa"); 
hotelInfoSet.add("bb"); 
alert(hotelInfoSet.length); hotelInfoSet的长度为0,数据添加不到hotelInfoSet中,是不是继承Array有问题?