此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

EditContext:characterBoundsRangeStart 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

EditContext 接口的只读属性 characterBoundsRangeStart 表示可编辑文本内容中与 characterBounds 数组中的第一项对应的字符索引。

例如,如果 EditContent 包含字符 abc,且 characterBoundRangeStart1,则 characterBounds 数组中的第一个项包含字符 b 的边界。