在调用 selectNodeContents() 时, startContainer 、 endContainer 等于传入的节点,即这个例子中的 <p> 元素。而 startOffset 属性始终等于 0 ...
確定! 回上一頁