可以通过getCaretOffset来获取光标位置。对应官网文档链接:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-types-V5\#getcaretoffset11
可以通过getCaretOffset来获取光标位置。对应官网文档链接:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-types-V5\#getcaretoffset11