MsAjax Lib-> Array.removeAt 函数
来源:互联网 发布:过山车之星优化 编辑:程序博客网 时间:2024/05/01 17:21
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>");
请参见
- Array 对象
- Array 类型扩展
- JScript Language Reference
- MsAjax Lib-> Array.removeAt 函数
- MsAjax Lib-> Array.enqueue 函数
- MsAjax Lib-> Array.dequeue 函数
- MsAjax Lib-> Array.forEach 函数
- MsAjax Lib-> Array.indexOf 函数
- MsAjax Lib-> Array.insert 函数
- MsAjax Lib-> Array.parse 函数
- MsAjax Lib-> Array.remove 函数
- MsAjax Lib-> Boolean.parse 函数
- MsAjax Lib-> Date.format 函数
- MsAjax Lib-> Date.localeFormat 函数
- MsAjax Lib-> Date.parseLocale 函数
- MsAjax Lib-> Date.parseInvariant 函数
- MsAjax Lib-> Boolean 类型扩展
- MsAjax Lib-> Date 类型扩展
- MsAjax Lib-> Error 类型扩展
- MsAjax Lib-> Number 类型扩展
- 为javascript的Array添加个has(value),remove(value),removeAt(index)方法
- 讓我看看你的唇,猜猜你在說什麼
- 牙刷也能超音波振動
- 休闲游戏服务器
- 实现进程间数据交换的两种方法和应用
- MsAjax Lib-> Array.remove 函数
- MsAjax Lib-> Array.removeAt 函数
- MIME格式,按扩展名排序
- 从图灵奖看计算机科学技术发展史的缩影
- IIS中的MIME格式,按类型/子类型排序
- mpeg2
- 欢迎进群...5623253,编程思想...这里需要高手.
- 日文CGI中文化教學
- java访问数据库
- 封装XMLHTTP