从parse.com打印geopoint对象

时间:2014-05-20 22:04:21

标签: label parse-platform geopoints

我想从parse.com打印我的geopoint标签。 使用

 <label class="edit-location"><%= location %></label>

显示[对象对象]

如果我使用

 <label class="edit-location"><%= JSON.stringify(location) %></label>

显示{&#34; __类型&#34;:&#34; GeoPoint&#34;,&#34;纬度&#34;:40,&#34;经度&#34;: - 30}

只显示正确的格式,40,-30(使用此示例)

感谢

1 个答案:

答案 0 :(得分:1)

试试这个:

<label class="edit-location"><%= location.latitude + "," + location.longitude %></label>
相关问题