开发者

Accessing object's properties in an array

开发者 https://www.devze.com 2023-03-02 04:29 出处:网络
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 fro
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

精彩评论

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