【发布时间】:2012-12-07 21:05:20
【问题描述】:
我一直在使用此代码在 jquery 移动页面显示事件中显示谷歌地图,但它不起作用..
$('#page3').live('pageshow', function(event, ui) {
$('#googleMap').gmap().bind('init', function(ev, map) {
$('#googleMap').gmap('addMarker', {'position': '57.7973333,12.0502107', 'bounds':
true}).click(function() {
$('#googleMap').gmap('openInfoWindow', {'content': 'Hello World!'}, this);
});
});
});
【问题讨论】:
-
pageshow事件是什么?是来自 jQuery Mobile 吗? -
是的,它来自 jquery mobile。
标签: jquery jquery-ui jquery-mobile google-maps-api-3