使用Firefox,我可以使用 window.getSelection() 來獲取所選文本。 如果選擇了圖像,則返回 alt 屬性。 但是,如果我使用 .getRangeAt(0) ,則不使用 alt 屬性返回所選 ...
確定! 回上一頁