Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Firefox 上(至少)JavaScript 复制和粘贴功能默认是禁用的。有没有办法检查功能是否可用,如果没有,我可以隐藏一些按钮?
在 IE8、FF3.6.10、Chrome 3.0.195 中测试。Safari 4.0:
if(typeof(window.clipboardData)=="undefined") { alert("not working") } else { alert("working") }