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 GoJS Layers -- Northwoods Software for more discussion.

walter,thank you very much ,it works perfectly!