我正在使用此代码来应对一些圆圈重叠:
iCantThinkOfAGoodLabelName:
x = genX(radius);
y = genY(radius);
for(i in circles) {
var thisCircle = circles[i];
if(Math.abs(x-thisCircle["x"])+Math.abs(y-thisCircle["y"])>radius*2) { //No overlap
continue;
} else { //Overlap
continue iCantThinkOfAGoodLabelName; //<- Line 256
}
thisCircle = [];
}
但是当达到 continue 语句时,chrome 的开发者控制台给了我这个:client.html:256 Uncaught SyntaxError: Undefined label 'iCantThinkOfAGoodLabelName'