【发布时间】:2011-11-01 16:14:43
【问题描述】:
我正在构建一个 Google 地图应用程序,我想从我的 HTML 中读出 schema.org 指定的元数据以绘制我的地图标记。
例如:
<li itemscope="itemscope" itemtype="http://schema.org/LocalBusiness">
...some html...
<div class="geo" itemprop="geo" itemscope="itemscope" itemtype="http://schema.org/GeoCoordinates">
<meta itemprop="latitude" content="43.681505" />
<meta itemprop="longitude" content="-79.294455" />
</div>
</li>
有没有一种简单的方法来查询纬度和经度值而无需遍历所有内容?
【问题讨论】:
标签: javascript jquery html