1
我試圖定義煎茶觸摸2我自己的功能,我仍然收到錯誤定義自己的功能:如何鑑於煎茶觸摸2
Uncaught ReferenceError: function22 is not defined
而且我的文件負責,這是:查看目錄中的Position.js
Ext.define('GS.view.Position', {
extend: 'Ext.Map',
xtype: 'map',
config: {
title: 'Position',
iconCls: 'time',
useCurrentLocation:true,
mapOptions: {
zoom: 19
},
listeners: {
maprender : function(comp, map){
//new google.maps.LatLng,
marker = new google.maps.Marker({
position: new google.maps.LatLng(this._geo.getLatitude(), this._geo.getLongitude()),
title: '1',
map: map
});
google.maps.event.addListener(marker, 'click', function22);
new google.maps.Marker({
position: new google.maps.LatLng(51.266064,15.562048),
title: '1',
map: map
});
}
}
},
function22: function(){
alert('some alert');
}
});