`
willhwl
  • 浏览: 1310 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

action script中的3种for loop

阅读更多
假设有一个String的Array strArray


for(var i:uint = 0; i < strArray.length; i++){ //type 1
   var str:String = strArray[i]; 
}

for each(var str:String in strArray){ // type 2
    
}

for(var pro:String in strArray){//type 3: 该循环并不会遍历strArry中的值,只会遍历strArray Object的所有属性

}

分享到:
评论

相关推荐

    Ajax in action 英文版配书源码.rar

    Script-centric (iframe), script-centric (eval), and Data-centric (XML or JSON) approaches.planets.html shows the Object BRowser in action.&lt;br&gt;&lt;br&gt;Chapter 6: ch06/msgtest.html is the entry point for ...

    BURNINTEST--硬件检测工具

    - A parallel port loop back plug for the parallel port test. - A USB port loop back plug for the USB port test. - A USB 2.0 port loop back plug for the USB 2.0 port test. - PassMark ModemTest V1.3 ...

    ZendFramework中文文档

    创建默认的控制器(Action Controller) 7.1.2.6. 创建你的视图脚本 7.1.2.7. 创建你自己的错误控制器 7.1.2.8. 访问站点! 7.2. Zend_Controller 基础 7.3. 前端控制器 7.3.1. 概述 7.3.2. 主要方法 7.3....

    微软内部资料-SQL性能优化3

    For example, value of req_mode = 3 represents the Shared lock mode rather than the Schema Modification lock mode. Lock Compatibility These locks can apply at any coarser level of granularity. ...

    asp连接数据库代码实例

    response.write \"数据库连接出错,请检查conn.asp中的连接字符串。\" response.end end if function CloseDB Conn.Close set Conn=Nothing End Function %&gt; dim badword badword=\"\'|and|select|update|...

    WordPress 2.8 Theme Design.pdf

    Applying the DOM script to WordPress 224 Allowing only selected pages to display 226 Hiding pages the easy way with pageMash 226 Adding Flash to your theme 227 Flash in your theme 227 Handling ...

    python3.6.5参考手册 chm

    PEP 526: Syntax for variable annotations PEP 515: Underscores in Numeric Literals PEP 525: Asynchronous Generators PEP 530: Asynchronous Comprehensions PEP 487: Simpler customization of class ...

    Beginning Python (2005).pdf

    Try It Out: Searching for Files of a Particular Type 181 Try It Out: Refining a Search 183 Working with Regular Expressions and the re Module 184 Try It Out: Fun with Regular Expressions 186 Try ...

    WPTools.v6.29.1.Pro

    - fix for wrong display of tables with header and footer rows. Sometimes both were painted without any data. + to load old Hiedit templates as RTF code use the formatstring -HiEditFields. This will ...

    2009 达内Unix学习笔记

    输出重定向,意思就是说,将原来屏幕输出变为文件输出,即将内容输到文件中。 输入重定向。 本来命令是通过键盘得到输入的,但是用小于号,就能够使命令从文件中得到输入。 \ 表示未写完,回车换行再继续。 * ...

    ddl语言自定义数据库字段

    } } &lt;/script&gt; &lt;table width="58%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE"&gt; &lt;form name="myform" method="post" action="&lt;%=sFileName%&gt;?...

    freemarker总结

    使用import指令导入库到模板中,Freemarker会为导入的库创建新的名字空间,并可以通过import指令中指定的散列变量访问库中的变量: ${my.mail} ${mail} 输出结果: &lt;p&gt;Copyright (C) 1999-2002 ...

    fso浏览54646465465464564

    '声明函数中所需的全局变量 Dim conn,rs,oStream,NoPackFiles,RootPath,FailFileList NoPackFiles="|&lt;$datafile&gt;.mdb|&lt;$datafile&gt;.ldb|" '------------------------------------------------------------- Call Main...

    asp.net汽车销售网站

    &lt;form method=Post action= &lt;% = filename %&gt;&gt; &lt;p align='center'&gt; If CurrentPage &lt;FONT COLOR=&lt;%=bgclr4%&gt;&gt;首 页 上一页 Else %&gt; &lt;a href=&lt;% = filename %&gt;?page=1&gt;...

    网络考试系统

    )=1 end if for i = 1 to rs1(&quot;附加参数&quot;) stzs=stzs+1 next dxanswer=rs1(&quot;用户答案&quot;) dxanswer=trim(dxanswer) if dxanswer=&quot;A&quot; then response.write &quot;; & rs1(&quot;试题ID&...

Global site tag (gtag.js) - Google Analytics