javascript arcgis 取区域中心点

//graphic是绘制完多边形之后返回的对象  
//获得多边形的中心点坐标
var centerPoint=graphic.geometry.getExtent().getCenter();