我想知道如何禁用事件偵聽器“復(fù)制”我認(rèn)為它是這樣的:.js 文件:let btn = document.getElementById('btn');document.body.addEventListener('click', function(e) { if (e.target.id === 'btn') { e.stopPropagation(); }}, { capture: false});提前致謝!清單.json:{ "name": "Test", "version": "1.0", "description": "Just testing!", "manifest_version": 2, "icons": { "48": "images/icon_48.png", "128": "images/icon_128.png" }, "browser_action": { "default_icon": "images/icon_16.png", "default_popup": "popup.html" }}
如何從 chrome 擴(kuò)展上下文在頁面上運(yùn)行腳本?
藍(lán)山帝景
2021-08-20 18:51:53