$(document).ready(function () { var localCity = new BMap.LocalCity(); localCity.get(function (r) { alert(r.name); });