- 博客(0)
- 资源 (1)
空空如也
Ext 3.0 中文API
一款有用的Ext api,chm格式
例如:
类Array 包:
定义的文件: Ext.js
类全称: Array
继承自于: Object
配置项这个类没有配置项。 公告属性这个类没有公告属性。 公共方法方法 定义者
indexOf( Object o ) : Number
检查对象是否存在于当前数组中。 Checks whether or n...
检查对象是否存在于当前数组中。 Checks whether or not the specified object exists in the array.
参数项:
o : Object
要检查的对象。The object to check for
返回值:
Number
返回该对象在数组中的位置(不存在则返回-1)。The index of o in the array (or -1 if it is not found)
remove( Object o ) : Array
删除数组中指定对象。如果该对象不在数组中,则不进行操作。 Remove...
删除数组中指定对象。如果该对象不在数组中,则不进行操作。 Removes the specified object from the array. If the object is not found nothing happens.
参数项:
o : Object
要移除的对象。The object to remove
返回值:
Array
当前数组。this array
getElapsed( Date date ) : Number
返回date对象创建时间与现在时间的时间差,单位为毫秒。 Return...
返回date对象创建时间与现在时间的时间差,单位为毫秒。 Returns the number of milliseconds between this date and date (译注:)例:var date = new Date(); var x=0; while(x<2){ alert('x'); x++; } var theTime = date.getElapsed(); alert(theTime); //将显示间隔的时间,单位是毫秒
参数项:
date : Date
(可选的)默认时间是now。(optional) Defaults to now
返回值:
Number
间隔毫秒数。The diff in milliseconds @member Date getElapsed
2010-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人