How to make nodes on top of links?

How can I programaticly ensure that nodes are always displayed on top of links in a diagram?

Set layerName: "Background" on your Link template.

Read http://gojs.net/latest/intro/layers.html for more discussion.

walter,thank you very much ,it works perfectly!