我有以下表格:
var markers = [
[ Title , 15.102253, 38.0505243, Description , 1],
[ Another Title , 15.102253, 38.0505243, Another Description , 2],
[ Title 3 , 15.102253, 38.0505243, Description 3 , 3],
];
接着,我收到一个把 com子分开的问讯(m=1,2),以建立如下阵列:
[ 1 , 2 ]
What I need to do is find all markers where the ID (markers[i][4]) comes from the query string.
实现这一目标的最佳途径是什么? 理想的情况是,我只想像标记那样,以同样的格式建立第3个阵列,但只显示点击的结果。
Any help would be greatly appreciated.
成就