06 2023 档案
Tips: How to Get the Currently Selected HTML Content in Major Browsers
摘要:```js function getSelectionHtml() { const sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); for (var i 阅读全文
posted @ 2023-06-29 17:13 y1j2x34