Skip to content

有更简单更好的实现 #2

Closed
@ShenHongFei

Description

@ShenHongFei
document.querySelectorAll<HTMLDivElement>('#article-content').forEach($div => {
    $div.addEventListener(
        'copy', 
        event => { event.stopImmediatePropagation() }, 
        true
    )
})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions