我想将相同的端点分配给各种容器。但我必须手动将它们分配给每个容器,例如:
jsPlumb.addEndpoint('window', { anchor:[0.5, 1, 0, 1] }, exampleEndpoint2);
jsPlumb.addEndpoint('window2', { anchor:"RightMiddle" }, exampleEndpoint2);
jsPlumb.addEndpoint("window3", { anchor:[0.75, 0, 0, -1] }, exampleEndpoint2);
jsPlumb.addEndpoint("window4", { anchor:[0.25, 0, 0, -1] }, exampleEndpoint2);
有没有办法可以将其分配给类选择器,例如:
jsPlumb.addEndpoint(".window", { anchor:[0.25, 0, 0, -1] }, exampleEndpoint2);
或者可能是一种解决方法?