document.selection.createRange方法与实例

(编辑:jimmy 日期: 2024/10/8 浏览:2)

配合 execCommand,在 HTML 编辑器中很有用,比如:文字加粗、斜体、复制、粘贴、创建超链接等。