diff options
author | Kevin CHEN <33132228+KevinZonda@users.noreply.github.com> | 2021-06-17 09:02:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 16:02:19 +0800 |
commit | e78dd4b54b0213f0ef63348c1319131519c394b0 (patch) | |
tree | 98d3b4758d1cde118c9d4ebeebdf627b4ef67303 /files/zh-cn/web/api | |
parent | 03810305ee40b9e130d5d5c89e9432ff66413167 (diff) | |
download | translated-content-e78dd4b54b0213f0ef63348c1319131519c394b0.tar.gz translated-content-e78dd4b54b0213f0ef63348c1319131519c394b0.tar.bz2 translated-content-e78dd4b54b0213f0ef63348c1319131519c394b0.zip |
Fix Web/API/EventTarget/addEventListener, zh-CN (#1224)
fix #663
Diffstat (limited to 'files/zh-cn/web/api')
-rw-r--r-- | files/zh-cn/web/api/eventtarget/addeventlistener/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/eventtarget/addeventlistener/index.html b/files/zh-cn/web/api/eventtarget/addeventlistener/index.html index 0e0e8580b0..400bcf4a0f 100644 --- a/files/zh-cn/web/api/eventtarget/addeventlistener/index.html +++ b/files/zh-cn/web/api/eventtarget/addeventlistener/index.html @@ -616,7 +616,7 @@ try { window.addEventListener('scroll', function(event) { /* do something */ // can't use event.preventDefault(); - // 不能使用event.prevebt. + // 不能使用 event.preventDefault() }, passiveIfSupported );</code></pre> <p>在不支持<code>addEventListener()</code>的<code>options</code>参数的旧浏览器上,尝试使用它会阻止使用<code>useCapture</code>参数而不正确使用特征检测。</p> |