Skip to content

Commit

Permalink
docs: update docs/JavaScript/event_Model.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Jun 25, 2024
1 parent 5c55d2a commit 1c92b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/JavaScript/event_Model.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,6 @@ detachEvent(eventType, handler)

```js
var btn = document.getElementById('.btn');
btn.attachEvent(onclick, showMessage);
btn.detachEvent(onclick, showMessage);
btn.attachEvent('onclick', showMessage);
btn.detachEvent('onclick', showMessage);
```

0 comments on commit 1c92b7e

Please sign in to comment.