);

            // 方式2，性能提升
            p.imageUrl = '';
            const canvas = document.createElement('canvas');
            // const canvas2 = await XE.HTML.div2Canvas(htmlText, { canvas, width: 512, height: 512 });
            const canvas2 = await XE.HTML.div2Canvas(htmlText);
            p.drawCanvas(ctx => {
                ctx.drawImage(canvas2, 0, 0);
            });

            return p;
        }
    </script>
</body>

</html>