开发者

Accessing object's properties in an array

for(i=0;i<=rowData.length;i++){
        alert(rowData[i].title);
    } 

i have a some five objects in an array. those objects have title, but when i try to access them, it says cannot read property title from sundefined.

How can i differentiate these objects, when i don't have the index or the name of object.

Let's take 开发者_如何学PythonrowData = [object,object,object];

Now i want to access a specified object, but how can i know that this object is what i am looking for.


You want less than not less than or equal to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜