标签:point pre keyword i++ points ext poi for nts
var points = [
{x: 111, y: 220, value: 35},
{x: 111, y: 191, value: 80},
{x: 111, y: 158, value: 86},
{x: 111, y: 34, value: 12},
{x: 111, y: 287, value: 38},
{x: 111, y: 66, value: 32},
{x: 111, y: 118, value: 50},
{x: 111, y: 254, value: 73},
{x: 111, y: 216, value: 91},
{x: 111, y: 236, value: 80},
{x: 290, y: 106, value: 7},
{x: 290, y: 131, value: 58},
{x: 290, y: 197, value: 14},
{x: 290, y: 132, value: 33},
{x: 290, y: 277, value: 6},
{x: 290, y: 261, value: 50},
{x: 290, y: 224, value: 97},
{x: 290, y: 19, value: 43},
{x: 290, y: 218, value: 38},
{x: 290, y: 184, value: 87}
];
for(var i = 0;i < points.length; i++){
alert(points[i].value);
}
方法二
var data=[{name:"a",age:12},{name:"b",age:11},{name:"c",age:13},{name:"d",age:14}]; for(var o in data){
alert(o);
alert(data[o]);
alert("text:"+data[o].name+" value:"+data[o].age );
}
标签:point pre keyword i++ points ext poi for nts
原文地址:http://www.cnblogs.com/opcec/p/7698794.html