代码1

ZDNet软件频道 时间:2002-08-07 作者: |  我要评论()
本文关键词:
this.Add = function (poItem, pvKey) {
     if (typeof(poItem) == "object" && poItem.constructor == Item) {
          var idx = this.all.push(poItem) - 1; // 'push' was added in IE 5.5
          if (this.all[idx].Index = -1) {
               this.all[idx].Index = idx;
          }
          if (typeof(pvKey) != "undefined") {
               this.all[idx].Key = pvKey;
               this.aall[pvKey] = this.all[idx];
                    
          this.length = this.all.length;
      } else {
          alert("Item must be an Item object.");
      }
}

百度大联盟认证黄金会员Copyright© 1997- CNET Networks 版权所有。 ZDNet 是CNET Networks公司注册服务商标。
中华人民共和国电信与信息服务业务经营许可证编号:京ICP证010391号 京ICP备09041801号-159
京公网安备:1101082134