你好誰能幫我調試的小錯誤,我的眼睛似乎跳過錯誤是:?意外(錯誤是我的數組了Syntex正確意外令牌(錯誤
function SourceClusting()
{
// grabbing count
var table = document.getElementById('OSDataCount');
var counter= table.rows[1].children[0].innerHTML
// putting all variable into arrays
var latitude()
var longitude()
var i
var marker =[];
// placing values into arrays
for (i=1;i == counter;i++)
{
longitude[i]=table.rows[i].children[6].innerHTML;
latitude[i]=table.rows[i].children[5].innerHTML;
marker[i]=new GMarker(new GLatLng(longitude[i],latitude[i]));
}
var markerCluster = new MarkerClusterer(map, marker);
}
歡呼
嘗試使用jslint.com檢查語法 – Maz 2011-05-11 17:46:33
VAR緯度()VAR經度()?這些變量是?嘗試刪除()並用一個替換; – Andreas 2011-05-11 17:46:40