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

MsAjax Lib-> Array.dequeue 函数

Array.dequeue 函数

从 Array对象 中移除第一个元素并返回该元素。

语法

var firstElement = Array.dequeue(array);

参数

参数

说明

array

被操作的Array对象。

返回值

第一个元素。

备注

使用 dequeue 函数从 Array对象 中移除第一个元素. 其它元素的索引值(Index)自动提前1.

下面示例展示了如何使用 dequeue 函数.

JavaScript

var myArray = [];
var result = "";
Array.add(myArray, 'a');
Array.add(myArray, 'b');
Array.add(myArray, 'c');
Array.add(myArray, 'd');
result = Array.dequeue(myArray);
// View the results: "b,c,d"
document.write("Dequeue result: " + result + "myArray: " + myArray.toString(),"</p>");



DO_LOOP_UNTIL在ASP中的应用:【上一篇】
网页布局心得(如何搭网页):【下一篇】
【相关文章】
  • MsAjax Lib-> Array.forEach 函数
  • MsAjax Lib-> Array.indexOf 函数
  • MsAjax Lib-> Array.insert 函数
  • MsAjax Lib-> Array.remove 函数
  • MsAjax Lib-> Array.removeAt 函数
  • MsAjax Lib-> Boolean 类型扩展
  • MsAjax Lib-> Boolean.parse 函数
  • MsAjax Lib-> Date.format 函数
  • MsAjax Lib-> Date.localeFormat 函数
  • MsAjax Lib-> Date.parseLocale 函数
  • 【随机文章】
  • 让你的主页声色并茂—巧为网页添加背景音乐
  • Gentoo新闻周报中文
  • Access使用查询--1.1 用选择查询建立计算字段
  • 基于 Apache DBCP 的数据库连接获取类(原创)
  • Linux日志
  • shell脚本1
  • 用ASP实现聊天室中的在线答题游戏
  • [转]Ajax学习 网址备忘录
  • oracle备份与恢愎
  • svg入门(转)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.