当前位置:编程学习 > JAVA >>

javascript创建对象

function Point(lng,lat)
{
this.x = lng;
this.y = lat;
}

var Spoint = new Point("166.85462145","98.65478985241");
var Epoint = new Point("166.85462145","98.65478985241");

var lineLngLat = new Array();
lineLngLat[0] = Spoint;
lineLngLat[1] = Epoint;

 


摘自 hi-beijing

补充:web前端 , JavaScript ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,