resultLayer1 = L.geoJSON(result.recordsets[0].features, {
pointToLayer: function(feature, latlng) {
return L.marker(latlng, {
icon: pointIcon1
}).bindPopup("姓名:" + feature.properties.Name + "</br>班级:" + feature.properties.banji + "</br>电话:" + feature.properties.dianhua + `</br><button>警告</button>`);
}
}).addTo(map);
这个button的点击事件在哪里加