IE 11 document.selection does not work [closed]

空扰寡人 提交于 2019-11-29 08:57:32

IE11 replaced the legacy API with a more standards-compliant API.

selection is no longer supported. Starting with Internet Explorer 11, use getSelection.

See Compatibility changes in IE11.

An HTMLSelection object is now returned, which is different to the old selection object and it doesn't look like empty is a valid method in the new API. Hopefully the new API will have methods that allow you to perform the same logic.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!