Array.prototype.ArrayInsertAfter=function(Num,obj)
{
    var tempArr=new Array();
    var l=this.length;
    for(var i=0;i<l;i++)
    {
        tempArr.push(this.shift());
    }
    l=tempArr.length;
    for(var i=0;i<l;i++)
    {
        this.push(tempArr.shift());
        if(i==Num)
        {
            this.push(obj);
        }
    }
    return this;
}

相关文章:

  • 2022-01-20
  • 2021-10-25
  • 2022-12-23
  • 2021-09-07
  • 2021-08-10
  • 2022-03-11
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-10-18
  • 2022-12-23
  • 2021-06-01
  • 2021-07-06
  • 2021-11-21
相关资源
相似解决方案