Is there a simpler (shorter) notation for writing this click event / function(s) in Javascript?

后端 未结 0 1064
抹茶落季
抹茶落季 2020-12-12 17:35

I am working on a Leaflet map and I have 37 markers on the map. Is there any shorter way of writing the below code or do I have to write click event 37 times like I did belo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题