xrender npm i xrender -S import xrender from 'xrender'; let render = xrender.init(selector, scale); render.addChild(new xrender.Circle(styles, attrs)); render.render(); doc 文档地址