//將json轉成陣列 const positions = JSON.parse(JSON.stringify(positionsPo.value)); positions.forEach(position => { const marker = new AMap.Marker({position,}); }); 獲取的資料樣式 positionsPo.value列印出來是 [ [116.39, 39.9], [116.40, 39.91], [116.41, 39.92] ] 請將她轉換成 const positions = [ [116.39, 39.9], [116.40, 39.91], [116.41, 39.92] ]; 使其正常執行