Using jsPlumb needs to implement a function similar to a flow chart. It can save and restore the flow chart. Dragging a node can connect two points. However, after the connection is successful, you need to set the connection type, solid line or dotted line.
I found the answer, first register the "dashed line type", and then set it through the link object.
1 step:
2 step: