禁用右键功能

main^2
xcw 2024-12-03 15:30:26 +08:00
parent 1c658c883b
commit 9ca51255a2
1 changed files with 11 additions and 1 deletions

View File

@ -39,4 +39,14 @@
</div>
</div>
<div class="foot-statistics-code" style="display: none;">{$system['statistics']??''}</div>
<div class="foot-statistics-code" style="display: none;">{$system['statistics']??''}</div>
<script>
$(function() {
// 添加一个事件监听器到整个文档上
document.addEventListener('contextmenu', function(event) {
// 阻止默认的上下文菜单出现
event.preventDefault();
});
})
</script>