禁用右键功能
parent
1c658c883b
commit
9ca51255a2
|
@ -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>
|
Loading…
Reference in New Issue