中文禁用右键功能

main^2
xcw 2024-12-03 15:36:17 +08:00
parent a4d7590f0d
commit d20ebbe2b3
1 changed files with 11 additions and 1 deletions

View File

@ -41,4 +41,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>