Array类型

Posted extjs4

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Array类型相关的知识,希望对你有一定的参考价值。

 

Chapter 10. Arrays

要明白elementtype与componenttype

There are some situations in which an element of an array can be an array: if the element type is Object or Cloneable or java.io.Serializable, then some or all of the elements may be arrays, because any array object can be assigned to any variable of these types.

 

If an array variable v has type A[], where A is a reference type, then v can hold a reference to an instance of any array type B[], provided B can be assigned to A (§5.2). This may result in a run-time exception on a later assignment; see §10.5 for a discussion.

 

Arrays must be indexed by int values; shortbyte, or char values may also be used as index values because they are subjected to unary numeric promotion (§5.6.1) and become int values.

An attempt to access an array component with a long index value results in a compile-time error.

 

 

 

 

以上是关于Array类型的主要内容,如果未能解决你的问题,请参考以下文章

Discuz代码片段

使 PHP 代码更加简洁的几个小技巧

javascript常用代码片段

几个有用的JavaScript/jQuery代码片段(转)

使用Array.Count并匹配案例F#

10个JavaScript代码片段,使你更加容易前端开发。