我有文本框的文本“这是测试文本框”,我想设置下划线只字“测试”,而不是整个文本框文本。如何将下划线设置为子字符串?
var canvas = new fabric.Canvas('c');
var underlineText = new fabric.Textbox("This is test textbox", {
underline: true,
});
canvas.add(underlineText);
canvas {
border: 1px solid #999;
}
<script src="https://ra