kineticjs rect fillText
问题 I have KineticJS rect already fill with 'blue' color, I want to show Text on this rect box. But my below code not showing anything. Also I need to assign this label text on button click, the code for the same is also below. drawShape = new Kinetic.Rect({ id: shapeId, name: shapeName, x: 0, y: 0, width: 150, height: 40, fill: "#00D2FF", stroke: "black", strokeWidth: 3, fillText: "Step" + stepNumber }); function OnApplyPropertiesClick(){ drawShape.fillText(document.getElementById("txtLabel")