for(var i = 0; i<len; i++){
var jhBjdArr = new Array();
jhBjdArr = cxjgInfoArr[i].split(",");
var jdxzmc = jhBjdArr[1];
jd = jhBjdArr[2];
wd = jhBjdArr[3];
var nsrsl = jhBjdArr[4];
var size = new SuperMap.Size(30,25);
var offset = new SuperMap.Pixel(8, -30);
var jhIcon = new SuperMap.Icon(Constants.contextRoot+"/map/superMap/theme/images/marker.png", size,offset);
var point = new SuperMap.LonLat(jd, wd);
var marker = new SuperMap.Marker(point,jhIcon);
marker.events.on({
"mousemove":function(){addJhMarkerInfo(marker,nsrsl,jdxzmc,point)}
});
marker.events.on({
"mouseout":removePopup
});
markerlayer.addMarker(marker);
}
想这个样子的代码,marker.events.on({"mousemove":function(){addJhMarkerInfo(marker,nsrsl,jdxzmc,point)}});这段代码怎么能一个标记点对应一个,而不是一个所有标记点对应最后一个,或者一次性像marker.events.on({"mousemove":(function(){addJhMarkerInfo(marker,nsrsl,jdxzmc,point)})()});这么写,加载就全执行了,事件根本没用