JSON有function initialize() {
var mapOptions = {
zoom: 12
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
$('#lat').val(position.coords.latitude);
$('#lng').val(position.coords.longitude);
var pos = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
var marker = new google.maps.Marker({
map: map,
position: pos,
title: 'GPS'
});
map.setCenter(pos);
}, function () {
handleNoGeolocation(true);
});
} else {
handleNoGeolocation(false);
}
}
,JSON Schema有application/json
,JSON LD有application/schema+json
。 Mongo更新文档,例如:
application/ld+json
是否有文档类型或mime类型?