我在网站上放置了代码以显示地图,该地图可以正常工作,但地图仅出现1秒钟,然后消失
搜索年份并尝试了无效的解决方案
// This is to declare the custom exception:
var BreakException = {};
try {
bot.myenmap.forEach((element) => {
// This is like a normal forEach loop
// When you want to break it, just do this:
throw BreakException;
});
} catch (e) {
// If it's a BreakException it will ignore it and not givce errors
if (e !== BreakException) throw e;
}