0
我该如何去调用jQuery数组中的函数来添加另一个数组?调用数组中的函数
$('#map').zoommap({
// Width and Height of the Map
width: '490px',
height: '380px',
//Region
map: function getMaps();
});
getMaps()应返回以下:
{
id: 'campus',
image: '/resources/images/maps/'+mapId,
data: '',
maps: []
}
干杯, 尼克
应该这样做。 该函数的原因是因为我最终会通过ajax调用来获取数组。 – Masey 2010-09-02 04:34:42
公平不够:)我更喜欢称它为“字典”,以免与实际的[]数组混淆。 – mpen 2010-09-02 05:04:34