我想在矩形上单击鼠标右键。 您可以将此示例用于矩形http://jsfiddle.net/xPbgf/
var rect = new Kinetic.Rect({
x: 239,
y: 75,
width: 100,
height: 50,
fill: 'green',
stroke: 'black',
strokeWidth: 4
});
// add the shape to the layer
layer.add(rect);
// add the layer to the stage
stage.add(layer);
rect.on('click',stgClicked);