来自Mezzi的提示:
//[extended method] push insert new item
if(typeof(Array.prototype.push)!="function")
{
Array.prototype.push = function()
{
for (var i=0; i<arguments.length; i++)
this[this.length] = arguments[i];
return this.length;
};
}
Array的push方法在IE5.0上不正常的解决办法!
最新推荐文章于 2024-03-06 09:22:23 发布