首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 网站建设 > ASP.NET > MsAjax Lib-> Array.removeAt 函数
【标  题】:MsAjax Lib-> Array.removeAt 函数
【关键字】:MsAjax,Lib-,Array.removeAt
【来  源】:http://blog.csdn.net/chsword/archive/2007/02/25/1514223.aspx

MsAjax Lib-> Array.removeAt 函数

Array.removeAt 函数

移除 Array 的指定索引处的元素。 静态函数,使用无需实例化。

语法

Array.removeAt(array, index);

参数

参数

说明

array

准备移除元素的数组

index

准备移除元素的索引.

备注

使用 removeAt 移除 Array 的指定索引处的元素. 元素索引值要比 index 参数小1.

如果 index 为负数, removeAt 函数从数组最后进行计数. 调用 removeAt 时使用的index 大于数组长度则无效.

下面示例给出如何调用removeAt.

JavaScript

var a = ['a', 'b', 'c', 'd', 'e'];
Array.remove(a, 'c');
// View the results: "a,b,d,e"
document.write(a,"</p>");
Array.removeAt(a, 2);
// View the results: "a,b,e"
document.write(a,"</p>");

 
MsAjax Lib-> Boolean 类型扩展:【上一篇】
MsAjax Lib-> Array.remove 函数:【下一篇】
【相关文章】
  • MsAjax Lib-> Boolean 类型扩展
  • MsAjax Lib-> Boolean.parse 函数
  • MsAjax Lib-> Date.format 函数
  • MsAjax Lib-> Date.localeFormat 函数
  • MsAjax Lib-> Date.parseLocale 函数
  • MsAjax Lib-> Date.parseInvariant 函数
  • MsAjax Lib-> Date 类型扩展
  • MSAJAX第二章:MSAJAX对字符串的扩展
  • MSAJAX第一章:MSAJAX对数组的扩展
  • andyLib----javascript常用工具库
  • 【随机文章】
  • 在FB6.1上运行rsync客户端,同步windows xp rsync
  • Liod平台的ppp拨号(linux)
  • 双喜临门
  • lftpget
  • 打字动画效果的实现
  • 服务器端编程实例(三 多进程并发)
  • CCNA试题-1(搜集整理)
  • DEBUG命令详解 上
  • JSP/Struts中文乱码问题
  • [MVP] 热烈祝贺!您已经获得 Microsoft MVP 奖励!
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.