for of

for (const [index, item] of athAtvArr.entries()) {
krpano.call("set(hotspot[" + spotname + "].point["+index+"].ath," + item[0] + ");");
krpano.call("set(hotspot[" + spotname + "].point["+index+"].atv," + item[1] + ");");
}

posted @ 2022-07-20 11:31  zcbj588  阅读(50)  评论(0编辑  收藏  举报