一.代码: var draw = SVG('container').size(300, 300); draw.style({ border: '1px solid red' }); var group = draw.group(); var rect = draw.rect(100, 60).fill('green'); rect.radius(50); group.add(rect); var text = draw.text('测试按钮'); text.style({ fill: 'red'