作为文本:只需调用 document.getSelection().toString() 。 作为DOM 节点:获取底层的(underlying)范围,并调用它们的 cloneContents() 方法(如果我们不支持Firefox 多 ...
確定! 回上一頁